#1F1A71#1F1A71
#1F1A71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.142 H 275.7°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1A71 |
|---|---|
| RGB | rgb(31, 26, 113) |
| HSL | hsl(243, 63%, 27%) |
| HSV | hsv(243, 77%, 44%) |
| CMYK | cmyk(72.6%, 77%, 0%, 55.7%) |
| CIE-LAB | lab(16.61, 32.10, -48.96) |
| CIE-LCH | lch(16.61, 58.55, 303.24°) |
| OKLab | oklab(29.49% 0.0142 -0.1415) |
| OKLCH | oklch(29.49% 0.142 275.7) |
| XYZ | xyz(3.9141, 2.2220, 15.8422) |
| Luminance | 0.0222 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.70
Dark Royal Blue
#02066F
ΔE00 4.48
Darkblue (survey)
#030764
ΔE00 4.67
Deep Blue
#040273
ΔE00 5.09
Royal
#0C1793
ΔE00 5.34
Navy
#000080
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1A71 #6C711A
analogous
#1A4171 #1F1A71 #4A1A71
triadic
#1F1A71 #711F1A #1A711F
tetradic
#1F1A71 #711A41 #6C711A #1A714A
square
#1F1A71 #711A41 #6C711A #1A714A
split-complementary
#1F1A71 #714A1A #41711A
monochromatic
#070619 #110F3F #1F1A71 #2D25A3 #3E35D0
Accessibility & contrast
On white
14.54
#1F1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1F1A71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1A71
14.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1A71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1A71 | 1.00 | 14.54 | 1.44 | 14.54 |
| #FFFFFF | 14.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f1a71; /* rgb */ color: rgb(31, 26, 113); /* oklch */ color: oklch(29.5% 0.142 275.7);
Tailwind
colors: {
custom: {
50: '#68589b',
500: '#1f1a71',
950: '#000000',
},
}SCSS
$custom: #1f1a71; $custom-light: #68589b; $custom-dark: #000000;
JSON
{
"hex": "#1f1a71",
"rgb": {
"r": 31,
"g": 26,
"b": 113
},
"hsl": {
"h": 243.448,
"s": 62.59,
"l": 27.255
},
"oklch": {
"l": 0.29492,
"c": 0.14224,
"h": 275.7
},
"luminance": 0.02222
}Semantic roles & 50–950 ramp
primary
#1F1A71
secondary
#A0A641
accent
#E642DC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E