#1F1C8A#1F1C8A
#1F1C8A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.172 H 272.6°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1C8A |
|---|---|
| RGB | rgb(31, 28, 138) |
| HSL | hsl(242, 66%, 33%) |
| HSV | hsv(242, 80%, 54%) |
| CMYK | cmyk(77.5%, 79.7%, 0%, 45.9%) |
| CIE-LAB | lab(19.87, 39.57, -59.50) |
| CIE-LCH | lch(19.87, 71.46, 303.62°) |
| OKLab | oklab(32.63% 0.0077 -0.1722) |
| OKLCH | oklch(32.63% 0.172 272.6) |
| XYZ | xyz(5.5662, 2.9562, 24.3171) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.89
Midnight Blue
#191970
ΔE00 4.10
Cobalt Blue
#030AA7
ΔE00 4.74
Darkblue
#00008B
ΔE00 4.75
Navy
#000080
ΔE00 5.26
Royal Blue (survey)
#0504AA
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1C8A #878A1C
analogous
#1C508A #1F1C8A #561C8A
triadic
#1F1C8A #8A1F1C #1C8A1F
tetradic
#1F1C8A #8A1C50 #878A1C #1C8A56
square
#1F1C8A #8A1C50 #878A1C #1C8A56
split-complementary
#1F1C8A #8A561C #508A1C
monochromatic
#080724 #141257 #1F1C8A #2A26BD #4B47DA
Accessibility & contrast
On white
13.20
#1F1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#1F1C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1C8A
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1C8A | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1f1c8a; /* rgb */ color: rgb(31, 28, 138); /* oklch */ color: oklch(32.6% 0.172 272.6);
Tailwind
colors: {
custom: {
50: '#6f5aad',
500: '#1f1c8a',
950: '#000000',
},
}SCSS
$custom: #1f1c8a; $custom-light: #6f5aad; $custom-dark: #000000;
JSON
{
"hex": "#1f1c8a",
"rgb": {
"r": 31,
"g": 28,
"b": 138
},
"hsl": {
"h": 241.636,
"s": 66.265,
"l": 32.549
},
"oklch": {
"l": 0.32632,
"c": 0.17237,
"h": 272.6
},
"luminance": 0.02957
}Semantic roles & 50–950 ramp
primary
#1F1C8A
secondary
#B8BB46
accent
#E93FE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F