#1F1789#1F1789
#1F1789 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.176 H 273.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1789 |
|---|---|
| RGB | rgb(31, 23, 137) |
| HSL | hsl(244, 71%, 31%) |
| HSV | hsv(244, 83%, 54%) |
| CMYK | cmyk(77.4%, 83.2%, 0%, 46.3%) |
| CIE-LAB | lab(18.84, 41.86, -60.58) |
| CIE-LCH | lch(18.84, 73.63, 304.65°) |
| OKLab | oklab(31.88% 0.0097 -0.1752) |
| OKLCH | oklch(31.88% 0.176 273.2) |
| XYZ | xyz(5.3853, 2.7097, 23.9013) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.73
Darkblue
#00008B
ΔE00 3.76
Midnight Blue
#191970
ΔE00 4.12
Navy
#000080
ΔE00 4.27
Cobalt Blue
#030AA7
ΔE00 4.35
Indigo (survey)
#380282
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1789 #818917
analogous
#174889 #1F1789 #581789
triadic
#1F1789 #891F17 #17891F
tetradic
#1F1789 #891748 #818917 #178958
square
#1F1789 #891748 #818917 #178958
split-complementary
#1F1789 #895817 #488917
monochromatic
#070520 #130E55 #1F1789 #2B20BD #483CDE
Accessibility & contrast
On white
13.62
#1F1789 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#1F1789 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1789
13.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1789 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1789 | 1.00 | 13.62 | 1.54 | 13.62 |
| #FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002887
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1f1789; /* rgb */ color: rgb(31, 23, 137); /* oklch */ color: oklch(31.9% 0.176 273.2);
Tailwind
colors: {
custom: {
50: '#6f58ad',
500: '#1f1789',
950: '#000000',
},
}SCSS
$custom: #1f1789; $custom-light: #6f58ad; $custom-dark: #000000;
JSON
{
"hex": "#1f1789",
"rgb": {
"r": 31,
"g": 23,
"b": 137
},
"hsl": {
"h": 244.211,
"s": 71.25,
"l": 31.373
},
"oklch": {
"l": 0.31881,
"c": 0.17551,
"h": 273.2
},
"luminance": 0.0271
}Semantic roles & 50–950 ramp
primary
#1F1789
secondary
#B4BD3F
accent
#EE3AE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F