#1F1573#1F1573
#1F1573 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.150 H 276.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1573 |
|---|---|
| RGB | rgb(31, 21, 115) |
| HSL | hsl(246, 69%, 27%) |
| HSV | hsv(246, 82%, 45%) |
| CMYK | cmyk(73%, 81.7%, 0%, 54.9%) |
| CIE-LAB | lab(15.83, 35.67, -51.56) |
| CIE-LCH | lch(15.83, 62.70, 304.68°) |
| OKLab | oklab(29.01% 0.0165 -0.149) |
| OKLCH | oklch(29.01% 0.15 276.3) |
| XYZ | xyz(3.9267, 2.0651, 16.4080) |
| Luminance | 0.0207 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.55
Dark Royal Blue
#02066F
ΔE00 3.41
Deep Blue
#040273
ΔE00 3.87
Darkblue (survey)
#030764
ΔE00 3.92
Navy
#000080
ΔE00 4.47
Royal
#0C1793
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1573 #697315
analogous
#153A73 #1F1573 #4E1573
triadic
#1F1573 #731F15 #15731F
tetradic
#1F1573 #73153A #697315 #15734E
square
#1F1573 #73153A #697315 #15734E
split-complementary
#1F1573 #734E15 #3A7315
monochromatic
#07051A #110C3F #1F1573 #2D1EA7 #3D2AD8
Accessibility & contrast
On white
14.86
#1F1573 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#1F1573 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1573
14.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1573 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1573 | 1.00 | 14.86 | 1.41 | 14.86 |
| #FFFFFF | 14.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002371
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #1f1573; /* rgb */ color: rgb(31, 21, 115); /* oklch */ color: oklch(29.0% 0.150 276.3);
Tailwind
colors: {
custom: {
50: '#69559c',
500: '#1f1573',
950: '#000000',
},
}SCSS
$custom: #1f1573; $custom-light: #69559c; $custom-dark: #000000;
JSON
{
"hex": "#1f1573",
"rgb": {
"r": 31,
"g": 21,
"b": 115
},
"hsl": {
"h": 246.383,
"s": 69.118,
"l": 26.667
},
"oklch": {
"l": 0.29006,
"c": 0.14994,
"h": 276.3
},
"luminance": 0.02065
}Semantic roles & 50–950 ramp
primary
#1F1573
secondary
#9DA93B
accent
#EC3CD9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E