#1F168E#1F168E
#1F168E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.182 H 272.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #1F168E |
|---|---|
| RGB | rgb(31, 22, 142) |
| HSL | hsl(245, 73%, 32%) |
| HSV | hsv(245, 85%, 56%) |
| CMYK | cmyk(78.2%, 84.5%, 0%, 44.3%) |
| CIE-LAB | lab(19.30, 43.94, -62.95) |
| CIE-LCH | lch(19.30, 76.77, 304.92°) |
| OKLab | oklab(32.38% 0.0087 -0.1821) |
| OKLCH | oklch(32.38% 0.182 272.7) |
| XYZ | xyz(5.7328, 2.8175, 25.8276) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.32
Darkblue
#00008B
ΔE00 3.60
Cobalt Blue
#030AA7
ΔE00 3.62
Royal Blue (survey)
#0504AA
ΔE00 4.13
Navy
#000080
ΔE00 4.38
Indigo (survey)
#380282
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F168E #858E16
analogous
#16498E #1F168E #5B168E
triadic
#1F168E #8E1F16 #168E1F
tetradic
#1F168E #8E1649 #858E16 #168E5B
square
#1F168E #8E1649 #858E16 #168E5B
split-complementary
#1F168E #8E5B16 #498E16
monochromatic
#080624 #130E59 #1F168E #2B1EC3 #4A3DE1
Accessibility & contrast
On white
13.43
#1F168E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1F168E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F168E
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F168E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F168E | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f168e; /* rgb */ color: rgb(31, 22, 142); /* oklch */ color: oklch(32.4% 0.182 272.7);
Tailwind
colors: {
custom: {
50: '#7057b0',
500: '#1f168e',
950: '#000000',
},
}SCSS
$custom: #1f168e; $custom-light: #7057b0; $custom-dark: #000000;
JSON
{
"hex": "#1f168e",
"rgb": {
"r": 31,
"g": 22,
"b": 142
},
"hsl": {
"h": 244.5,
"s": 73.171,
"l": 32.157
},
"oklch": {
"l": 0.32376,
"c": 0.1823,
"h": 272.7
},
"luminance": 0.02818
}Semantic roles & 50–950 ramp
primary
#1F168E
secondary
#B7C13F
accent
#F038E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880