#1F1771#1F1771
#1F1771 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.145 H 276.3°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1771 |
|---|---|
| RGB | rgb(31, 23, 113) |
| HSL | hsl(245, 66%, 27%) |
| HSV | hsv(245, 80%, 44%) |
| CMYK | cmyk(72.6%, 79.6%, 0%, 55.7%) |
| CIE-LAB | lab(15.98, 33.87, -50.00) |
| CIE-LCH | lch(15.98, 60.40, 304.12°) |
| OKLab | oklab(29.05% 0.016 -0.1445) |
| OKLCH | oklch(29.05% 0.145 276.3) |
| XYZ | xyz(3.8511, 2.0960, 15.8212) |
| Luminance | 0.0210 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.04
Dark Royal Blue
#02066F
ΔE00 3.81
Darkblue (survey)
#030764
ΔE00 4.10
Deep Blue
#040273
ΔE00 4.38
Navy
#000080
ΔE00 5.06
Royal
#0C1793
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1771 #697117
analogous
#173C71 #1F1771 #4C1771
triadic
#1F1771 #711F17 #17711F
tetradic
#1F1771 #71173C #697117 #17714C
square
#1F1771 #71173C #697117 #17714C
split-complementary
#1F1771 #714C17 #3C7117
monochromatic
#070519 #110D3E #1F1771 #2D21A4 #3D2ED4
Accessibility & contrast
On white
14.80
#1F1771 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#1F1771 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1771
14.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1771 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1771 | 1.00 | 14.80 | 1.42 | 14.80 |
| #FFFFFF | 14.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f1771; /* rgb */ color: rgb(31, 23, 113); /* oklch */ color: oklch(29.0% 0.145 276.3);
Tailwind
colors: {
custom: {
50: '#69569b',
500: '#1f1771',
950: '#000000',
},
}SCSS
$custom: #1f1771; $custom-light: #69569b; $custom-dark: #000000;
JSON
{
"hex": "#1f1771",
"rgb": {
"r": 31,
"g": 23,
"b": 113
},
"hsl": {
"h": 245.333,
"s": 66.176,
"l": 26.667
},
"oklch": {
"l": 0.29048,
"c": 0.14541,
"h": 276.3
},
"luminance": 0.02096
}Semantic roles & 50–950 ramp
primary
#1F1771
secondary
#9DA73D
accent
#E93FDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E