#1F166C#1F166C
#1F166C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.140 H 277.3°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).
Color values
| HEX | #1F166C |
|---|---|
| RGB | rgb(31, 22, 108) |
| HSL | hsl(246, 66%, 25%) |
| HSV | hsv(246, 80%, 42%) |
| CMYK | cmyk(71.3%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(15.21, 32.74, -48.02) |
| CIE-LCH | lch(15.21, 58.12, 304.28°) |
| OKLab | oklab(28.33% 0.0178 -0.1388) |
| OKLCH | oklch(28.33% 0.14 277.3) |
| XYZ | xyz(3.5579, 1.9475, 14.3729) |
| Luminance | 0.0195 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.31
Darkblue (survey)
#030764
ΔE00 3.75
Dark Royal Blue
#02066F
ΔE00 3.82
Deep Blue
#040273
ΔE00 4.48
Dark Indigo
#1F0954
ΔE00 4.76
Dark Blue
#00035B
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F166C #636C16
analogous
#16386C #1F166C #4A166C
triadic
#1F166C #6C1F16 #166C1F
tetradic
#1F166C #6C1638 #636C16 #166C4A
square
#1F166C #6C1638 #636C16 #166C4A
split-complementary
#1F166C #6C4A16 #386C16
monochromatic
#070519 #100C39 #1F166C #2E209F #3C2BD2
Accessibility & contrast
On white
15.11
#1F166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#1F166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F166C
15.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F166C | 1.00 | 15.11 | 1.39 | 15.11 |
| #FFFFFF | 15.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #1f166c; /* rgb */ color: rgb(31, 22, 108); /* oklch */ color: oklch(28.3% 0.140 277.3);
Tailwind
colors: {
custom: {
50: '#675597',
500: '#1f166c',
950: '#000000',
},
}SCSS
$custom: #1f166c; $custom-light: #675597; $custom-dark: #000000;
JSON
{
"hex": "#1f166c",
"rgb": {
"r": 31,
"g": 22,
"b": 108
},
"hsl": {
"h": 246.279,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.28334,
"c": 0.1399,
"h": 277.3
},
"luminance": 0.01948
}Semantic roles & 50–950 ramp
primary
#1F166C
secondary
#98A23C
accent
#E93FD7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E