#1F2173#1F2173
#1F2173 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.137 H 273.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2173 |
|---|---|
| RGB | rgb(31, 33, 115) |
| HSL | hsl(239, 58%, 29%) |
| HSV | hsv(239, 73%, 45%) |
| CMYK | cmyk(73%, 71.3%, 0%, 54.9%) |
| CIE-LAB | lab(18.44, 28.37, -47.25) |
| CIE-LCH | lch(18.44, 55.11, 300.98°) |
| OKLab | oklab(30.86% 0.0093 -0.1366) |
| OKLCH | oklch(30.86% 0.137 273.9) |
| XYZ | xyz(4.2024, 2.6164, 16.4999) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.15
Royal
#0C1793
ΔE00 5.81
Dark Royal Blue
#02066F
ΔE00 6.27
Darkblue (survey)
#030764
ΔE00 6.39
Deep Blue
#040273
ΔE00 6.91
Navy
#000080
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2173 #73711F
analogous
#1F4B73 #1F2173 #471F73
triadic
#1F2173 #731F21 #21731F
tetradic
#1F2173 #731F4B #73711F #1F7347
square
#1F2173 #731F4B #73711F #1F7347
split-complementary
#1F2173 #73471F #4B731F
monochromatic
#060718 #121343 #1F2173 #2C2FA3 #4144CC
Accessibility & contrast
On white
13.78
#1F2173 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1F2173 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2173
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2173 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2173 | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f2173; /* rgb */ color: rgb(31, 33, 115); /* oklch */ color: oklch(30.9% 0.137 273.9);
Tailwind
colors: {
custom: {
50: '#685d9c',
500: '#1f2173',
950: '#000000',
},
}SCSS
$custom: #1f2173; $custom-light: #685d9c; $custom-dark: #000000;
JSON
{
"hex": "#1f2173",
"rgb": {
"r": 31,
"g": 33,
"b": 115
},
"hsl": {
"h": 238.571,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.30864,
"c": 0.13687,
"h": 273.9
},
"luminance": 0.02617
}Semantic roles & 50–950 ramp
primary
#1F2173
secondary
#A7A547
accent
#DD47E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E