#1F1589#1F1589
#1F1589 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.177 H 273.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1589 |
|---|---|
| RGB | rgb(31, 21, 137) |
| HSL | hsl(245, 73%, 31%) |
| HSV | hsv(245, 85%, 54%) |
| CMYK | cmyk(77.4%, 84.7%, 0%, 46.3%) |
| CIE-LAB | lab(18.51, 42.83, -61.12) |
| CIE-LCH | lch(18.51, 74.64, 305.02°) |
| OKLab | oklab(31.65% 0.0104 -0.1768) |
| OKLCH | oklch(31.65% 0.177 273.4) |
| XYZ | xyz(5.3471, 2.6332, 23.8885) |
| Luminance | 0.0263 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.80
Darkblue
#00008B
ΔE00 3.40
Navy
#000080
ΔE00 3.94
Cobalt Blue
#030AA7
ΔE00 4.21
Indigo (survey)
#380282
ΔE00 4.24
Midnight Blue
#191970
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1589 #7F8915
analogous
#154589 #1F1589 #591589
triadic
#1F1589 #891F15 #15891F
tetradic
#1F1589 #891545 #7F8915 #158959
square
#1F1589 #891545 #7F8915 #158959
split-complementary
#1F1589 #895915 #458915
monochromatic
#07051F #130D54 #1F1589 #2B1DBE #4638E0
Accessibility & contrast
On white
13.75
#1F1589 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#1F1589 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1589
13.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1589 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1589 | 1.00 | 13.75 | 1.53 | 13.75 |
| #FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328C
Deuteranopia (green-blind)
#002787
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f1589; /* rgb */ color: rgb(31, 21, 137); /* oklch */ color: oklch(31.7% 0.177 273.4);
Tailwind
colors: {
custom: {
50: '#6f57ad',
500: '#1f1589',
950: '#000000',
},
}SCSS
$custom: #1f1589; $custom-light: #6f57ad; $custom-dark: #000000;
JSON
{
"hex": "#1f1589",
"rgb": {
"r": 31,
"g": 21,
"b": 137
},
"hsl": {
"h": 245.172,
"s": 73.418,
"l": 30.98
},
"oklch": {
"l": 0.31652,
"c": 0.17709,
"h": 273.4
},
"luminance": 0.02634
}Semantic roles & 50–950 ramp
primary
#1F1589
secondary
#B2BD3D
accent
#F038E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F