#1F1C8B#1F1C8B
#1F1C8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.174 H 272.5°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1C8B |
|---|---|
| RGB | rgb(31, 28, 139) |
| HSL | hsl(242, 66%, 33%) |
| HSV | hsv(242, 80%, 55%) |
| CMYK | cmyk(77.7%, 79.9%, 0%, 45.5%) |
| CIE-LAB | lab(19.98, 39.90, -59.93) |
| CIE-LCH | lch(19.98, 72.00, 303.66°) |
| OKLab | oklab(32.75% 0.0075 -0.1735) |
| OKLCH | oklch(32.75% 0.174 272.5) |
| XYZ | xyz(5.6390, 2.9853, 24.7001) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.79
Midnight Blue
#191970
ΔE00 4.25
Cobalt Blue
#030AA7
ΔE00 4.61
Darkblue
#00008B
ΔE00 4.74
Royal Blue (survey)
#0504AA
ΔE00 5.18
Navy
#000080
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1C8B #888B1C
analogous
#1C508B #1F1C8B #571C8B
triadic
#1F1C8B #8B1F1C #1C8B1F
tetradic
#1F1C8B #8B1C50 #888B1C #1C8B57
square
#1F1C8B #8B1C50 #888B1C #1C8B57
split-complementary
#1F1C8B #8B571C #508B1C
monochromatic
#080725 #141258 #1F1C8B #2A26BE #4B47DA
Accessibility & contrast
On white
13.15
#1F1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#1F1C8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1C8B
13.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1C8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1C8B | 1.00 | 13.15 | 1.60 | 13.15 |
| #FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1f1c8b; /* rgb */ color: rgb(31, 28, 139); /* oklch */ color: oklch(32.7% 0.174 272.5);
Tailwind
colors: {
custom: {
50: '#6f5bae',
500: '#1f1c8b',
950: '#000000',
},
}SCSS
$custom: #1f1c8b; $custom-light: #6f5bae; $custom-dark: #000000;
JSON
{
"hex": "#1f1c8b",
"rgb": {
"r": 31,
"g": 28,
"b": 139
},
"hsl": {
"h": 241.622,
"s": 66.467,
"l": 32.745
},
"oklch": {
"l": 0.32749,
"c": 0.17362,
"h": 272.5
},
"luminance": 0.02986
}Semantic roles & 50–950 ramp
primary
#1F1C8B
secondary
#B9BC47
accent
#E93EE5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F