#1F156B#1F156B
#1F156B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.140 H 277.7°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).
Color values
| HEX | #1F156B |
|---|---|
| RGB | rgb(31, 21, 107) |
| HSL | hsl(247, 67%, 25%) |
| HSV | hsv(247, 80%, 42%) |
| CMYK | cmyk(71%, 80.4%, 0%, 58%) |
| CIE-LAB | lab(14.89, 32.97, -47.89) |
| CIE-LCH | lch(14.89, 58.14, 304.54°) |
| OKLab | oklab(28.08% 0.0187 -0.1384) |
| OKLCH | oklch(28.08% 0.14 277.7) |
| XYZ | xyz(3.4862, 1.8889, 14.0879) |
| Luminance | 0.0189 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.55
Darkblue (survey)
#030764
ΔE00 3.56
Dark Royal Blue
#02066F
ΔE00 3.69
Deep Blue
#040273
ΔE00 4.35
Dark Indigo
#1F0954
ΔE00 4.51
Dark Blue
#00035B
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F156B #616B15
analogous
#15366B #1F156B #4A156B
triadic
#1F156B #6B1F15 #156B1F
tetradic
#1F156B #6B1536 #616B15 #156B4A
square
#1F156B #6B1536 #616B15 #156B4A
split-complementary
#1F156B #6B4A15 #366B15
monochromatic
#07051A #100B38 #1F156B #2E1F9E #3D29D1
Accessibility & contrast
On white
15.24
#1F156B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#1F156B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F156B
15.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F156B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F156B | 1.00 | 15.24 | 1.38 | 15.24 |
| #FFFFFF | 15.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #1f156b; /* rgb */ color: rgb(31, 21, 107); /* oklch */ color: oklch(28.1% 0.140 277.7);
Tailwind
colors: {
custom: {
50: '#675496',
500: '#1f156b',
950: '#000000',
},
}SCSS
$custom: #1f156b; $custom-light: #675496; $custom-dark: #000000;
JSON
{
"hex": "#1f156b",
"rgb": {
"r": 31,
"g": 21,
"b": 107
},
"hsl": {
"h": 246.977,
"s": 67.188,
"l": 25.098
},
"oklch": {
"l": 0.28077,
"c": 0.13961,
"h": 277.7
},
"luminance": 0.01889
}Semantic roles & 50–950 ramp
primary
#1F156B
secondary
#96A23A
accent
#EA3ED6
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E