#1F286F#1F286F
#1F286F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.122 H 271.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #1F286F |
|---|---|
| RGB | rgb(31, 40, 111) |
| HSL | hsl(233, 56%, 28%) |
| HSV | hsv(233, 72%, 44%) |
| CMYK | cmyk(72.1%, 64%, 0%, 56.5%) |
| CIE-LAB | lab(19.87, 22.06, -42.33) |
| CIE-LCH | lch(19.87, 47.73, 297.52°) |
| OKLab | oklab(31.79% 0.0041 -0.1221) |
| OKLCH | oklch(31.79% 0.122 271.9) |
| XYZ | xyz(4.1921, 2.9562, 15.3855) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.65
Marine
#042E60
ΔE00 6.23
Royal
#0C1793
ΔE00 7.90
Navy Blue
#1B2A4A
ΔE00 7.98
Darkslateblue
#483D8B
ΔE00 8.43
Navy Blue (survey)
#001146
ΔE00 8.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F286F #6F661F
analogous
#1F506F #1F286F #3E1F6F
triadic
#1F286F #6F1F28 #286F1F
tetradic
#1F286F #6F1F50 #6F661F #1F6F3E
square
#1F286F #6F1F50 #6F661F #1F6F3E
split-complementary
#1F286F #6F3E1F #506F1F
monochromatic
#070918 #12173F #1F286F #2C399F #3F4FC9
Accessibility & contrast
On white
13.20
#1F286F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#1F286F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F286F
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F286F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F286F | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1f286f; /* rgb */ color: rgb(31, 40, 111); /* oklch */ color: oklch(31.8% 0.122 271.9);
Tailwind
colors: {
custom: {
50: '#666199',
500: '#1f286f',
950: '#000000',
},
}SCSS
$custom: #1f286f; $custom-light: #666199; $custom-dark: #000000;
JSON
{
"hex": "#1f286f",
"rgb": {
"r": 31,
"g": 40,
"b": 111
},
"hsl": {
"h": 233.25,
"s": 56.338,
"l": 27.843
},
"oklch": {
"l": 0.31792,
"c": 0.12216,
"h": 271.9
},
"luminance": 0.02957
}Semantic roles & 50–950 ramp
primary
#1F286F
secondary
#A39947
accent
#CF48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E