#1F168A#1F168A
#1F168A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.178 H 273.2°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1F168A |
|---|---|
| RGB | rgb(31, 22, 138) |
| HSL | hsl(245, 73%, 31%) |
| HSV | hsv(245, 84%, 54%) |
| CMYK | cmyk(77.5%, 84.1%, 0%, 45.9%) |
| CIE-LAB | lab(18.80, 42.67, -61.28) |
| CIE-LCH | lch(18.80, 74.67, 304.85°) |
| OKLab | oklab(31.89% 0.0098 -0.1772) |
| OKLCH | oklch(31.89% 0.178 273.2) |
| XYZ | xyz(5.4379, 2.6995, 24.2743) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.65
Darkblue
#00008B
ΔE00 3.57
Cobalt Blue
#030AA7
ΔE00 4.14
Navy
#000080
ΔE00 4.14
Midnight Blue
#191970
ΔE00 4.33
Indigo (survey)
#380282
ΔE00 4.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F168A #818A16
analogous
#16478A #1F168A #59168A
triadic
#1F168A #8A1F16 #168A1F
tetradic
#1F168A #8A1647 #818A16 #168A59
square
#1F168A #8A1647 #818A16 #168A59
split-complementary
#1F168A #8A5916 #478A16
monochromatic
#070520 #130E55 #1F168A #2B1EBF #473BE0
Accessibility & contrast
On white
13.64
#1F168A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#1F168A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F168A
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F168A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F168A | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1f168a; /* rgb */ color: rgb(31, 22, 138); /* oklch */ color: oklch(31.9% 0.178 273.2);
Tailwind
colors: {
custom: {
50: '#6f57ad',
500: '#1f168a',
950: '#000000',
},
}SCSS
$custom: #1f168a; $custom-light: #6f57ad; $custom-dark: #000000;
JSON
{
"hex": "#1f168a",
"rgb": {
"r": 31,
"g": 22,
"b": 138
},
"hsl": {
"h": 244.655,
"s": 72.5,
"l": 31.373
},
"oklch": {
"l": 0.31887,
"c": 0.17752,
"h": 273.2
},
"luminance": 0.027
}Semantic roles & 50–950 ramp
primary
#1F168A
secondary
#B4BE3E
accent
#EF39E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F