Nearest named color · #3037A8
#3037A8
Nearest named color: Depths of Night
#3037A8 (rgb(48 55 168), hsl(237 56% 42%), oklch(0.41 0.178 272.8)) is closest to the named color Depths of Night. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#3037A8
oklch(0.41 0.178 272.8)
Color conversions
- HEX
- #3037a8
- RGB
- rgb(48 55 168)
- HSL
- hsl(237 56% 42%)
- HWB
- hwb(237 19% 34%)
- OKLCH
- oklch(0.41 0.178 272.8)
- OKLab
- oklab(0.41 0.009 -0.177)
- CIE Lab
- lab(28.82 28.11 -62.84)
- LCH
- lch(28.82 68.84 294.1)
- CMYK
- cmyk(71% 67% 0% 34%)
Tints · Shades · Tones
Tints
- 404DB2
- 5162BC
- 6476C6
- 7889CF
- 8D9DD8
- A3B0E0
- B9C4E9
- D0D7F0
- E7EBF8
Shades
- 282E92
- 21267C
- 1A1E67
- 131652
- 0C0F3F
- 06082C
- 03031A
- 01010A
- 000001
Tones
- 3641A5
- 3D4AA2
- 44529F
- 4C5A9B
- 546197
- 5C6793
- 656E8F
- 6E748A
- 777A85
Color harmonies
Complementary +180°
- 3037A8
Depths of Night
- 5A4800
≈ Sugarloaf Brown
Analogous -30° +30°
- 3037A8
Depths of Night
- 004F7B
≈ China Seas
- 5F2297
≈ Wild Violet
Triadic +120° +240°
- 3037A8
Depths of Night
- 8A1800
≈ Red Leever
- 005A2D
≈ Sombre Green
Split-complementary +150° +210°
- 3037A8
Depths of Night
- 6D3D00
≈ Bloodtracker Brown
- 415200
≈ Highlands Moss
Tetradic +90° +180° +270°
- 3037A8
Depths of Night
- 8B0042
≈ Midnight Merlot
- 5A4800
≈ Sugarloaf Brown
- 00574E
≈ Castleton Green
Contrast & accessibility
Ag
AAAOn white
WCAG 9.38:1 · APCA Lc 91
Ag
FailOn black
WCAG 2.23:1 · APCA Lc 11
Best text color: #FFFFFF
WCAG 9.38:1 (AAA) · APCA Lc 91
Contrast pairs
Code snippets
CSS
:root {
--depths-of-night: #3037a8;
--depths-of-night-rgb: 48 55 168;
--depths-of-night-oklch: oklch(0.41 0.178 272.8);
}
.element {
color: var(--depths-of-night);
background-color: hsl(237 56% 42%);
border-color: oklch(0.41 0.178 272.8);
}Tailwind CSS v4
@theme {
--color-depths-of-night: #3037a8;
--color-depths-of-night-50: #e6f2ff;
--color-depths-of-night-100: #d6e4ff;
--color-depths-of-night-200: #beceff;
--color-depths-of-night-300: #9dafff;
--color-depths-of-night-400: #7d94ff;
--color-depths-of-night-500: #6276f9;
--color-depths-of-night-600: #5365d2;
--color-depths-of-night-700: #4250a9;
--color-depths-of-night-800: #2c3b7f;
--color-depths-of-night-900: #1e295a;
--color-depths-of-night-950: #0e163d;
}SCSS
$depths-of-night: #3037a8;
$depths-of-night-rgb: 48, 55, 168;
$depths-of-night-light: mix(#fff, $depths-of-night, 20%);
$depths-of-night-dark: mix(#000, $depths-of-night, 20%);
.element {
color: $depths-of-night;
box-shadow: 0 0 0 2px rgba($depths-of-night, 0.35);
}