#1D1F8B#1D1F8B
#1D1F8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.171 H 271.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1D1F8B |
|---|---|
| RGB | rgb(29, 31, 139) |
| HSL | hsl(239, 65%, 33%) |
| HSV | hsv(239, 79%, 55%) |
| CMYK | cmyk(79.1%, 77.7%, 0%, 45.5%) |
| CIE-LAB | lab(20.46, 38.05, -59.15) |
| CIE-LCH | lch(20.46, 70.34, 302.75°) |
| OKLab | oklab(33.05% 0.0039 -0.1713) |
| OKLCH | oklch(33.05% 0.171 271.3) |
| XYZ | xyz(5.6553, 3.1046, 24.7223) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.22
Midnight Blue
#191970
ΔE00 4.27
Cobalt Blue
#030AA7
ΔE00 5.06
Darkblue
#00008B
ΔE00 5.41
Royal Blue (survey)
#0504AA
ΔE00 5.66
Navy
#000080
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D1F8B #8B891D
analogous
#1D568B #1D1F8B #521D8B
triadic
#1D1F8B #8B1D1F #1F8B1D
tetradic
#1D1F8B #8B1D56 #8B891D #1D8B52
square
#1D1F8B #8B1D56 #8B891D #1D8B52
split-complementary
#1D1F8B #8B521D #568B1D
monochromatic
#080826 #121458 #1D1F8B #282ABE #494CD9
Accessibility & contrast
On white
12.95
#1D1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1D1F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D1F8B
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D1F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D1F8B | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1d1f8b; /* rgb */ color: rgb(29, 31, 139); /* oklch */ color: oklch(33.1% 0.171 271.3);
Tailwind
colors: {
custom: {
50: '#6e5cae',
500: '#1d1f8b',
950: '#000000',
},
}SCSS
$custom: #1d1f8b; $custom-light: #6e5cae; $custom-dark: #000000;
JSON
{
"hex": "#1d1f8b",
"rgb": {
"r": 29,
"g": 31,
"b": 139
},
"hsl": {
"h": 238.909,
"s": 65.476,
"l": 32.941
},
"oklch": {
"l": 0.3305,
"c": 0.17131,
"h": 271.3
},
"luminance": 0.03105
}Semantic roles & 50–950 ramp
primary
#1D1F8B
secondary
#BBB949
accent
#E53FE8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F