#1F1575#1F1575
#1F1575 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.152 H 276.0°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1575 |
|---|---|
| RGB | rgb(31, 21, 117) |
| HSL | hsl(246, 70%, 27%) |
| HSV | hsv(246, 82%, 46%) |
| CMYK | cmyk(73.5%, 82.1%, 0%, 54.1%) |
| CIE-LAB | lab(16.06, 36.34, -52.46) |
| CIE-LCH | lch(16.06, 63.82, 304.71°) |
| OKLab | oklab(29.24% 0.0159 -0.1516) |
| OKLCH | oklch(29.24% 0.152 276) |
| XYZ | xyz(4.0431, 2.1116, 17.0207) |
| Luminance | 0.0211 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.72
Dark Royal Blue
#02066F
ΔE00 3.42
Deep Blue
#040273
ΔE00 3.83
Darkblue (survey)
#030764
ΔE00 4.08
Navy
#000080
ΔE00 4.29
Royal
#0C1793
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1575 #6B7515
analogous
#153B75 #1F1575 #4F1575
triadic
#1F1575 #751F15 #15751F
tetradic
#1F1575 #75153B #6B7515 #15754F
square
#1F1575 #75153B #6B7515 #15754F
split-complementary
#1F1575 #754F15 #3B7515
monochromatic
#07051A #110C41 #1F1575 #2D1EA9 #3D2BD9
Accessibility & contrast
On white
14.76
#1F1575 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#1F1575 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1575
14.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1575 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1575 | 1.00 | 14.76 | 1.42 | 14.76 |
| #FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002473
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f1575; /* rgb */ color: rgb(31, 21, 117); /* oklch */ color: oklch(29.2% 0.152 276.0);
Tailwind
colors: {
custom: {
50: '#6a559e',
500: '#1f1575',
950: '#000000',
},
}SCSS
$custom: #1f1575; $custom-light: #6a559e; $custom-dark: #000000;
JSON
{
"hex": "#1f1575",
"rgb": {
"r": 31,
"g": 21,
"b": 117
},
"hsl": {
"h": 246.25,
"s": 69.565,
"l": 27.059
},
"oklch": {
"l": 0.29242,
"c": 0.15248,
"h": 276
},
"luminance": 0.02112
}Semantic roles & 50–950 ramp
primary
#1F1575
secondary
#9FAB3B
accent
#EC3BDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E