#1F1E8D#1F1E8D
#1F1E8D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.174 H 272.1°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1E8D |
|---|---|
| RGB | rgb(31, 30, 141) |
| HSL | hsl(241, 65%, 34%) |
| HSV | hsv(241, 79%, 55%) |
| CMYK | cmyk(78%, 78.7%, 0%, 44.7%) |
| CIE-LAB | lab(20.61, 39.47, -60.16) |
| CIE-LCH | lch(20.61, 71.95, 303.27°) |
| OKLab | oklab(33.25% 0.0063 -0.1741) |
| OKLCH | oklch(33.25% 0.174 272.1) |
| XYZ | xyz(5.8354, 3.1423, 25.4931) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.93
Midnight Blue
#191970
ΔE00 4.55
Cobalt Blue
#030AA7
ΔE00 4.67
Darkblue
#00008B
ΔE00 5.17
Royal Blue (survey)
#0504AA
ΔE00 5.25
Navy
#000080
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1E8D #8C8D1E
analogous
#1E548D #1F1E8D #561E8D
triadic
#1F1E8D #8D1F1E #1E8D1F
tetradic
#1F1E8D #8D1E54 #8C8D1E #1E8D56
square
#1F1E8D #8D1E54 #8C8D1E #1E8D56
split-complementary
#1F1E8D #8D561E #548D1E
monochromatic
#090928 #14135B #1F1E8D #2A29BF #4E4CD9
Accessibility & contrast
On white
12.89
#1F1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#1F1E8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1E8D
12.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1E8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1E8D | 1.00 | 12.89 | 1.63 | 12.89 |
| #FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f1e8d; /* rgb */ color: rgb(31, 30, 141); /* oklch */ color: oklch(33.3% 0.174 272.1);
Tailwind
colors: {
custom: {
50: '#6f5cb0',
500: '#1f1e8d',
950: '#000000',
},
}SCSS
$custom: #1f1e8d; $custom-light: #6f5cb0; $custom-dark: #000000;
JSON
{
"hex": "#1f1e8d",
"rgb": {
"r": 31,
"g": 30,
"b": 141
},
"hsl": {
"h": 240.541,
"s": 64.912,
"l": 33.529
},
"oklch": {
"l": 0.33253,
"c": 0.17424,
"h": 272.1
},
"luminance": 0.03143
}Semantic roles & 50–950 ramp
primary
#1F1E8D
secondary
#BBBC4B
accent
#E840E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980