#1F1576#1F1576
#1F1576 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.154 H 275.8°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1576 |
|---|---|
| RGB | rgb(31, 21, 118) |
| HSL | hsl(246, 70%, 27%) |
| HSV | hsv(246, 82%, 46%) |
| CMYK | cmyk(73.7%, 82.2%, 0%, 53.7%) |
| CIE-LAB | lab(16.18, 36.67, -52.91) |
| CIE-LCH | lch(16.18, 64.37, 304.73°) |
| OKLab | oklab(29.36% 0.0157 -0.1529) |
| OKLCH | oklch(29.36% 0.154 275.8) |
| XYZ | xyz(4.1022, 2.1353, 17.3320) |
| Luminance | 0.0214 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.81
Dark Royal Blue
#02066F
ΔE00 3.45
Deep Blue
#040273
ΔE00 3.82
Darkblue (survey)
#030764
ΔE00 4.17
Navy
#000080
ΔE00 4.21
Royal
#0C1793
ΔE00 4.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1576 #6C7615
analogous
#153B76 #1F1576 #501576
triadic
#1F1576 #761F15 #15761F
tetradic
#1F1576 #76153B #6C7615 #157650
square
#1F1576 #76153B #6C7615 #157650
split-complementary
#1F1576 #765015 #3B7615
monochromatic
#07051A #110C42 #1F1576 #2D1EAA #3E2CD9
Accessibility & contrast
On white
14.71
#1F1576 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1F1576 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1576
14.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1576 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1576 | 1.00 | 14.71 | 1.43 | 14.71 |
| #FFFFFF | 14.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f1576; /* rgb */ color: rgb(31, 21, 118); /* oklch */ color: oklch(29.4% 0.154 275.8);
Tailwind
colors: {
custom: {
50: '#6a559f',
500: '#1f1576',
950: '#000000',
},
}SCSS
$custom: #1f1576; $custom-light: #6a559f; $custom-dark: #000000;
JSON
{
"hex": "#1f1576",
"rgb": {
"r": 31,
"g": 21,
"b": 118
},
"hsl": {
"h": 246.186,
"s": 69.784,
"l": 27.255
},
"oklch": {
"l": 0.2936,
"c": 0.15375,
"h": 275.8
},
"luminance": 0.02136
}Semantic roles & 50–950 ramp
primary
#1F1576
secondary
#A0AC3B
accent
#ED3BDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030F
muted
#7A787E