#1F2F8D#1F2F8D
#1F2F8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.156 H 269.2°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F8D |
|---|---|
| RGB | rgb(31, 47, 141) |
| HSL | hsl(231, 64%, 34%) |
| HSV | hsv(231, 78%, 55%) |
| CMYK | cmyk(78%, 66.7%, 0%, 44.7%) |
| CIE-LAB | lab(24.47, 28.84, -53.79) |
| CIE-LCH | lch(24.47, 61.03, 298.20°) |
| OKLab | oklab(36.03% -0.0023 -0.1556) |
| OKLCH | oklch(36.03% 0.156 269.2) |
| XYZ | xyz(6.3877, 4.2467, 25.6772) |
| Luminance | 0.0425 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.74
Royal
#0C1793
ΔE00 6.31
Blueberry
#464196
ΔE00 6.71
Darkslateblue
#483D8B
ΔE00 6.79
Midnight Blue
#191970
ΔE00 6.93
Marine
#042E60
ΔE00 8.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F8D #8D7D1F
analogous
#1F668D #1F2F8D #461F8D
triadic
#1F2F8D #8D1F2F #2F8D1F
tetradic
#1F2F8D #8D1F66 #8D7D1F #1F8D46
square
#1F2F8D #8D1F66 #8D7D1F #1F8D46
split-complementary
#1F2F8D #8D461F #668D1F
monochromatic
#090E29 #141E5B #1F2F8D #2A40BF #4E62D8
Accessibility & contrast
On white
11.36
#1F2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#1F2F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F8D
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F8D | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f2f8d; /* rgb */ color: rgb(31, 47, 141); /* oklch */ color: oklch(36.0% 0.156 269.2);
Tailwind
colors: {
custom: {
50: '#6d67af',
500: '#1f2f8d',
950: '#000000',
},
}SCSS
$custom: #1f2f8d; $custom-light: #6d67af; $custom-dark: #000000;
JSON
{
"hex": "#1f2f8d",
"rgb": {
"r": 31,
"g": 47,
"b": 141
},
"hsl": {
"h": 231.273,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.36033,
"c": 0.15562,
"h": 269.2
},
"luminance": 0.04247
}Semantic roles & 50–950 ramp
primary
#1F2F8D
secondary
#BBAB4D
accent
#CF41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F