#1F1E8B#1F1E8B
#1F1E8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.172 H 272.2°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1E8B |
|---|---|
| RGB | rgb(31, 30, 139) |
| HSL | hsl(241, 64%, 33%) |
| HSV | hsv(241, 78%, 55%) |
| CMYK | cmyk(77.7%, 78.4%, 0%, 45.5%) |
| CIE-LAB | lab(20.37, 38.79, -59.29) |
| CIE-LCH | lch(20.37, 70.85, 303.19°) |
| OKLab | oklab(33.02% 0.0067 -0.1716) |
| OKLCH | oklch(33.02% 0.172 272.2) |
| XYZ | xyz(5.6880, 3.0833, 24.7165) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.08
Midnight Blue
#191970
ΔE00 4.26
Cobalt Blue
#030AA7
ΔE00 4.90
Darkblue
#00008B
ΔE00 5.19
Royal Blue (survey)
#0504AA
ΔE00 5.48
Navy
#000080
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1E8B #8A8B1E
analogous
#1E548B #1F1E8B #551E8B
triadic
#1F1E8B #8B1F1E #1E8B1F
tetradic
#1F1E8B #8B1E54 #8A8B1E #1E8B55
square
#1F1E8B #8B1E54 #8A8B1E #1E8B55
split-complementary
#1F1E8B #8B551E #548B1E
monochromatic
#090826 #141359 #1F1E8B #2A29BD #4C4BD8
Accessibility & contrast
On white
12.99
#1F1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F1E8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1E8B
12.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1E8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1E8B | 1.00 | 12.99 | 1.62 | 12.99 |
| #FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f1e8b; /* rgb */ color: rgb(31, 30, 139); /* oklch */ color: oklch(33.0% 0.172 272.2);
Tailwind
colors: {
custom: {
50: '#6f5cae',
500: '#1f1e8b',
950: '#000000',
},
}SCSS
$custom: #1f1e8b; $custom-light: #6f5cae; $custom-dark: #000000;
JSON
{
"hex": "#1f1e8b",
"rgb": {
"r": 31,
"g": 30,
"b": 139
},
"hsl": {
"h": 240.55,
"s": 64.497,
"l": 33.137
},
"oklch": {
"l": 0.33022,
"c": 0.17174,
"h": 272.2
},
"luminance": 0.03084
}Semantic roles & 50–950 ramp
primary
#1F1E8B
secondary
#BABB4A
accent
#E740E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F