#1F168B#1F168B
#1F168B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.179 H 273.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).
Color values
| HEX | #1F168B |
|---|---|
| RGB | rgb(31, 22, 139) |
| HSL | hsl(245, 73%, 32%) |
| HSV | hsv(245, 84%, 55%) |
| CMYK | cmyk(77.7%, 84.2%, 0%, 45.5%) |
| CIE-LAB | lab(18.92, 42.99, -61.69) |
| CIE-LCH | lch(18.92, 75.20, 304.87°) |
| OKLab | oklab(32.01% 0.0095 -0.1785) |
| OKLCH | oklch(32.01% 0.179 273.1) |
| XYZ | xyz(5.5106, 2.7286, 24.6573) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.55
Darkblue
#00008B
ΔE00 3.56
Cobalt Blue
#030AA7
ΔE00 4.01
Navy
#000080
ΔE00 4.19
Indigo (survey)
#380282
ΔE00 4.42
Midnight Blue
#191970
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F168B #828B16
analogous
#16488B #1F168B #5A168B
triadic
#1F168B #8B1F16 #168B1F
tetradic
#1F168B #8B1648 #828B16 #168B5A
square
#1F168B #8B1648 #828B16 #168B5A
split-complementary
#1F168B #8B5A16 #488B16
monochromatic
#070521 #130E56 #1F168B #2B1EC0 #483BE0
Accessibility & contrast
On white
13.59
#1F168B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#1F168B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F168B
13.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F168B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F168B | 1.00 | 13.59 | 1.55 | 13.59 |
| #FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1f168b; /* rgb */ color: rgb(31, 22, 139); /* oklch */ color: oklch(32.0% 0.179 273.1);
Tailwind
colors: {
custom: {
50: '#6f57ae',
500: '#1f168b',
950: '#000000',
},
}SCSS
$custom: #1f168b; $custom-light: #6f57ae; $custom-dark: #000000;
JSON
{
"hex": "#1f168b",
"rgb": {
"r": 31,
"g": 22,
"b": 139
},
"hsl": {
"h": 244.615,
"s": 72.671,
"l": 31.569
},
"oklch": {
"l": 0.32009,
"c": 0.17871,
"h": 273.1
},
"luminance": 0.02729
}Semantic roles & 50–950 ramp
primary
#1F168B
secondary
#B5BF3E
accent
#EF38E1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F