#1F166F#1F166F
#1F166F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.144 H 276.8°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).
Color values
| HEX | #1F166F |
|---|---|
| RGB | rgb(31, 22, 111) |
| HSL | hsl(246, 67%, 26%) |
| HSV | hsv(246, 80%, 44%) |
| CMYK | cmyk(72.1%, 80.2%, 0%, 56.5%) |
| CIE-LAB | lab(15.55, 33.76, -49.41) |
| CIE-LCH | lch(15.55, 59.85, 304.34°) |
| OKLab | oklab(28.68% 0.017 -0.1428) |
| OKLCH | oklch(28.68% 0.144 276.8) |
| XYZ | xyz(3.7203, 2.0125, 15.2282) |
| Luminance | 0.0201 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.20
Dark Royal Blue
#02066F
ΔE00 3.67
Darkblue (survey)
#030764
ΔE00 3.84
Deep Blue
#040273
ΔE00 4.27
Navy
#000080
ΔE00 5.07
Dark Indigo
#1F0954
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F166F #666F16
analogous
#16396F #1F166F #4B166F
triadic
#1F166F #6F1F16 #166F1F
tetradic
#1F166F #6F1639 #666F16 #166F4B
square
#1F166F #6F1639 #666F16 #166F4B
split-complementary
#1F166F #6F4B16 #396F16
monochromatic
#07051A #110C3C #1F166F #2D20A2 #3C2BD5
Accessibility & contrast
On white
14.97
#1F166F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#1F166F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F166F
14.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F166F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F166F | 1.00 | 14.97 | 1.40 | 14.97 |
| #FFFFFF | 14.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #1f166f; /* rgb */ color: rgb(31, 22, 111); /* oklch */ color: oklch(28.7% 0.144 276.8);
Tailwind
colors: {
custom: {
50: '#685599',
500: '#1f166f',
950: '#000000',
},
}SCSS
$custom: #1f166f; $custom-light: #685599; $custom-dark: #000000;
JSON
{
"hex": "#1f166f",
"rgb": {
"r": 31,
"g": 22,
"b": 111
},
"hsl": {
"h": 246.067,
"s": 66.917,
"l": 26.078
},
"oklch": {
"l": 0.28677,
"c": 0.14382,
"h": 276.8
},
"luminance": 0.02013
}Semantic roles & 50–950 ramp
primary
#1F166F
secondary
#9AA53C
accent
#EA3ED8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E