#1F1E8A#1F1E8A
#1F1E8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.170 H 272.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1E8A |
|---|---|
| RGB | rgb(31, 30, 138) |
| HSL | hsl(241, 64%, 33%) |
| HSV | hsv(241, 78%, 54%) |
| CMYK | cmyk(77.5%, 78.3%, 0%, 45.9%) |
| CIE-LAB | lab(20.26, 38.45, -58.85) |
| CIE-LCH | lch(20.26, 70.30, 303.15°) |
| OKLab | oklab(32.91% 0.0069 -0.1703) |
| OKLCH | oklch(32.91% 0.17 272.3) |
| XYZ | xyz(5.6153, 3.0542, 24.3334) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.17
Midnight Blue
#191970
ΔE00 4.12
Cobalt Blue
#030AA7
ΔE00 5.02
Darkblue
#00008B
ΔE00 5.20
Royal Blue (survey)
#0504AA
ΔE00 5.60
Navy
#000080
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1E8A #898A1E
analogous
#1E538A #1F1E8A #551E8A
triadic
#1F1E8A #8A1F1E #1E8A1F
tetradic
#1F1E8A #8A1E53 #898A1E #1E8A55
square
#1F1E8A #8A1E53 #898A1E #1E8A55
split-complementary
#1F1E8A #8A551E #538A1E
monochromatic
#080825 #141358 #1F1E8A #2A29BC #4C4BD8
Accessibility & contrast
On white
13.04
#1F1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1F1E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1E8A
13.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1E8A | 1.00 | 13.04 | 1.61 | 13.04 |
| #FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f1e8a; /* rgb */ color: rgb(31, 30, 138); /* oklch */ color: oklch(32.9% 0.170 272.3);
Tailwind
colors: {
custom: {
50: '#6e5cad',
500: '#1f1e8a',
950: '#000000',
},
}SCSS
$custom: #1f1e8a; $custom-light: #6e5cad; $custom-dark: #000000;
JSON
{
"hex": "#1f1e8a",
"rgb": {
"r": 31,
"g": 30,
"b": 138
},
"hsl": {
"h": 240.556,
"s": 64.286,
"l": 32.941
},
"oklch": {
"l": 0.32908,
"c": 0.17048,
"h": 272.3
},
"luminance": 0.03055
}Semantic roles & 50–950 ramp
primary
#1F1E8A
secondary
#B9BA4A
accent
#E741E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F