#1F1872#1F1872
#1F1872 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.146 H 276.0°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1872 |
|---|---|
| RGB | rgb(31, 24, 114) |
| HSL | hsl(245, 65%, 27%) |
| HSV | hsv(245, 79%, 45%) |
| CMYK | cmyk(72.8%, 78.9%, 0%, 55.3%) |
| CIE-LAB | lab(16.30, 33.64, -50.13) |
| CIE-LCH | lch(16.30, 60.37, 303.87°) |
| OKLab | oklab(29.31% 0.0152 -0.1449) |
| OKLCH | oklch(29.31% 0.146 276) |
| XYZ | xyz(3.9280, 2.1591, 16.1261) |
| Luminance | 0.0216 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.92
Dark Royal Blue
#02066F
ΔE00 4.00
Darkblue (survey)
#030764
ΔE00 4.32
Deep Blue
#040273
ΔE00 4.56
Royal
#0C1793
ΔE00 5.07
Navy
#000080
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1872 #6B7218
analogous
#183E72 #1F1872 #4C1872
triadic
#1F1872 #721F18 #18721F
tetradic
#1F1872 #72183E #6B7218 #18724C
square
#1F1872 #72183E #6B7218 #18724C
split-complementary
#1F1872 #724C18 #3E7218
monochromatic
#070519 #110D3F #1F1872 #2D23A5 #3D31D4
Accessibility & contrast
On white
14.67
#1F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1F1872 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1872
14.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1872 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1872 | 1.00 | 14.67 | 1.43 | 14.67 |
| #FFFFFF | 14.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f1872; /* rgb */ color: rgb(31, 24, 114); /* oklch */ color: oklch(29.3% 0.146 276.0);
Tailwind
colors: {
custom: {
50: '#69579c',
500: '#1f1872',
950: '#000000',
},
}SCSS
$custom: #1f1872; $custom-light: #69579c; $custom-dark: #000000;
JSON
{
"hex": "#1f1872",
"rgb": {
"r": 31,
"g": 24,
"b": 114
},
"hsl": {
"h": 244.667,
"s": 65.217,
"l": 27.059
},
"oklch": {
"l": 0.29306,
"c": 0.14569,
"h": 276
},
"luminance": 0.02159
}Semantic roles & 50–950 ramp
primary
#1F1872
secondary
#9FA73E
accent
#E840DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E