#1F1574#1F1574
#1F1574 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.151 H 276.2°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1574 |
|---|---|
| RGB | rgb(31, 21, 116) |
| HSL | hsl(246, 69%, 27%) |
| HSV | hsv(246, 82%, 45%) |
| CMYK | cmyk(73.3%, 81.9%, 0%, 54.5%) |
| CIE-LAB | lab(15.94, 36.01, -52.01) |
| CIE-LCH | lch(15.94, 63.26, 304.70°) |
| OKLab | oklab(29.12% 0.0162 -0.1503) |
| OKLCH | oklch(29.12% 0.151 276.2) |
| XYZ | xyz(3.9846, 2.0882, 16.7127) |
| Luminance | 0.0209 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.63
Dark Royal Blue
#02066F
ΔE00 3.41
Deep Blue
#040273
ΔE00 3.85
Darkblue (survey)
#030764
ΔE00 4.00
Navy
#000080
ΔE00 4.38
Royal
#0C1793
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1574 #6A7415
analogous
#153B74 #1F1574 #4F1574
triadic
#1F1574 #741F15 #15741F
tetradic
#1F1574 #74153B #6A7415 #15744F
square
#1F1574 #74153B #6A7415 #15744F
split-complementary
#1F1574 #744F15 #3B7415
monochromatic
#07051A #110C40 #1F1574 #2D1EA8 #3D2BD9
Accessibility & contrast
On white
14.81
#1F1574 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#1F1574 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1574
14.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1574 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1574 | 1.00 | 14.81 | 1.42 | 14.81 |
| #FFFFFF | 14.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f1574; /* rgb */ color: rgb(31, 21, 116); /* oklch */ color: oklch(29.1% 0.151 276.2);
Tailwind
colors: {
custom: {
50: '#6a559d',
500: '#1f1574',
950: '#000000',
},
}SCSS
$custom: #1f1574; $custom-light: #6a559d; $custom-dark: #000000;
JSON
{
"hex": "#1f1574",
"rgb": {
"r": 31,
"g": 21,
"b": 116
},
"hsl": {
"h": 246.316,
"s": 69.343,
"l": 26.863
},
"oklch": {
"l": 0.29124,
"c": 0.15121,
"h": 276.2
},
"luminance": 0.02089
}Semantic roles & 50–950 ramp
primary
#1F1574
secondary
#9EAA3B
accent
#EC3CDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E