#1F1874#1F1874
#1F1874 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.148 H 275.7°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1874 |
|---|---|
| RGB | rgb(31, 24, 116) |
| HSL | hsl(245, 66%, 27%) |
| HSV | hsv(245, 79%, 45%) |
| CMYK | cmyk(73.3%, 79.3%, 0%, 54.5%) |
| CIE-LAB | lab(16.53, 34.33, -51.04) |
| CIE-LCH | lch(16.53, 61.51, 303.92°) |
| OKLab | oklab(29.53% 0.0147 -0.1476) |
| OKLCH | oklch(29.53% 0.148 275.7) |
| XYZ | xyz(4.0431, 2.2051, 16.7322) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.10
Dark Royal Blue
#02066F
ΔE00 3.98
Darkblue (survey)
#030764
ΔE00 4.44
Deep Blue
#040273
ΔE00 4.49
Royal
#0C1793
ΔE00 4.74
Navy
#000080
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1874 #6D7418
analogous
#183F74 #1F1874 #4D1874
triadic
#1F1874 #741F18 #18741F
tetradic
#1F1874 #74183F #6D7418 #18744D
square
#1F1874 #74183F #6D7418 #18744D
split-complementary
#1F1874 #744D18 #3F7418
monochromatic
#070519 #110E41 #1F1874 #2D22A7 #3E32D5
Accessibility & contrast
On white
14.57
#1F1874 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1F1874 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1874
14.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1874 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1874 | 1.00 | 14.57 | 1.44 | 14.57 |
| #FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f1874; /* rgb */ color: rgb(31, 24, 116); /* oklch */ color: oklch(29.5% 0.148 275.7);
Tailwind
colors: {
custom: {
50: '#69579d',
500: '#1f1874',
950: '#000000',
},
}SCSS
$custom: #1f1874; $custom-light: #69579d; $custom-dark: #000000;
JSON
{
"hex": "#1f1874",
"rgb": {
"r": 31,
"g": 24,
"b": 116
},
"hsl": {
"h": 244.565,
"s": 65.714,
"l": 27.451
},
"oklch": {
"l": 0.29534,
"c": 0.1483,
"h": 275.7
},
"luminance": 0.02206
}Semantic roles & 50–950 ramp
primary
#1F1874
secondary
#A1A93F
accent
#E93FDC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E