#1F166B#1F166B
#1F166B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.139 H 277.5°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).
Color values
| HEX | #1F166B |
|---|---|
| RGB | rgb(31, 22, 107) |
| HSL | hsl(246, 66%, 25%) |
| HSV | hsv(246, 79%, 42%) |
| CMYK | cmyk(71%, 79.4%, 0%, 58%) |
| CIE-LAB | lab(15.10, 32.39, -47.56) |
| CIE-LCH | lch(15.10, 57.54, 304.26°) |
| OKLab | oklab(28.22% 0.018 -0.1374) |
| OKLCH | oklch(28.22% 0.139 277.5) |
| XYZ | xyz(3.5050, 1.9264, 14.0942) |
| Luminance | 0.0193 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.39
Darkblue (survey)
#030764
ΔE00 3.74
Dark Royal Blue
#02066F
ΔE00 3.89
Deep Blue
#040273
ΔE00 4.57
Dark Indigo
#1F0954
ΔE00 4.63
Dark Blue
#00035B
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F166B #626B16
analogous
#16376B #1F166B #49166B
triadic
#1F166B #6B1F16 #166B1F
tetradic
#1F166B #6B1637 #626B16 #166B49
square
#1F166B #6B1637 #626B16 #166B49
split-complementary
#1F166B #6B4916 #376B16
monochromatic
#070519 #100C38 #1F166B #2E209E #3C2BD1
Accessibility & contrast
On white
15.16
#1F166B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#1F166B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F166B
15.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F166B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F166B | 1.00 | 15.16 | 1.39 | 15.16 |
| #FFFFFF | 15.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #1f166b; /* rgb */ color: rgb(31, 22, 107); /* oklch */ color: oklch(28.2% 0.139 277.5);
Tailwind
colors: {
custom: {
50: '#675596',
500: '#1f166b',
950: '#000000',
},
}SCSS
$custom: #1f166b; $custom-light: #675596; $custom-dark: #000000;
JSON
{
"hex": "#1f166b",
"rgb": {
"r": 31,
"g": 22,
"b": 107
},
"hsl": {
"h": 246.353,
"s": 65.891,
"l": 25.294
},
"oklch": {
"l": 0.2822,
"c": 0.13858,
"h": 277.5
},
"luminance": 0.01927
}Semantic roles & 50–950 ramp
primary
#1F166B
secondary
#97A13B
accent
#E93FD7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E