#1F2174#1F2174
#1F2174 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.138 H 273.8°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2174 |
|---|---|
| RGB | rgb(31, 33, 116) |
| HSL | hsl(239, 58%, 29%) |
| HSV | hsv(239, 73%, 45%) |
| CMYK | cmyk(73.3%, 71.6%, 0%, 54.5%) |
| CIE-LAB | lab(18.54, 28.74, -47.73) |
| CIE-LCH | lch(18.54, 55.71, 301.05°) |
| OKLab | oklab(30.97% 0.0091 -0.1379) |
| OKLCH | oklch(30.97% 0.138 273.8) |
| XYZ | xyz(4.2603, 2.6396, 16.8046) |
| Luminance | 0.0264 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.14
Royal
#0C1793
ΔE00 5.64
Dark Royal Blue
#02066F
ΔE00 6.24
Darkblue (survey)
#030764
ΔE00 6.40
Deep Blue
#040273
ΔE00 6.86
Navy
#000080
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2174 #74721F
analogous
#1F4C74 #1F2174 #481F74
triadic
#1F2174 #741F21 #21741F
tetradic
#1F2174 #741F4C #74721F #1F7448
square
#1F2174 #741F4C #74721F #1F7448
split-complementary
#1F2174 #74481F #4C741F
monochromatic
#060718 #121344 #1F2174 #2C2FA4 #4144CC
Accessibility & contrast
On white
13.74
#1F2174 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#1F2174 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2174
13.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2174 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2174 | 1.00 | 13.74 | 1.53 | 13.74 |
| #FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f2174; /* rgb */ color: rgb(31, 33, 116); /* oklch */ color: oklch(31.0% 0.138 273.8);
Tailwind
colors: {
custom: {
50: '#685d9d',
500: '#1f2174',
950: '#000000',
},
}SCSS
$custom: #1f2174; $custom-light: #685d9d; $custom-dark: #000000;
JSON
{
"hex": "#1f2174",
"rgb": {
"r": 31,
"g": 33,
"b": 116
},
"hsl": {
"h": 238.588,
"s": 57.823,
"l": 28.824
},
"oklch": {
"l": 0.30968,
"c": 0.13825,
"h": 273.8
},
"luminance": 0.0264
}Semantic roles & 50–950 ramp
primary
#1F2174
secondary
#A8A547
accent
#DD47E1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E