#1F2D7F#1F2D7F
#1F2D7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.139 H 269.9°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D7F |
|---|---|
| RGB | rgb(31, 45, 127) |
| HSL | hsl(231, 61%, 31%) |
| HSV | hsv(231, 76%, 50%) |
| CMYK | cmyk(75.6%, 64.6%, 0%, 50.2%) |
| CIE-LAB | lab(22.65, 24.81, -48.00) |
| CIE-LCH | lch(22.65, 54.03, 297.33°) |
| OKLab | oklab(34.3% -0.0003 -0.1387) |
| OKLCH | oklch(34.3% 0.139 269.9) |
| XYZ | xyz(5.3329, 3.6998, 20.5076) |
| Luminance | 0.0370 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.82
Sapphire (survey)
#2138AB
ΔE00 6.82
Marine
#042E60
ΔE00 6.86
Royal
#0C1793
ΔE00 6.97
Darkslateblue
#483D8B
ΔE00 7.13
Blueberry
#464196
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D7F #7F711F
analogous
#1F5D7F #1F2D7F #411F7F
triadic
#1F2D7F #7F1F2D #2D7F1F
tetradic
#1F2D7F #7F1F5D #7F711F #1F7F41
square
#1F2D7F #7F1F5D #7F711F #1F7F41
split-complementary
#1F2D7F #7F411F #5D7F1F
monochromatic
#070A1D #131C4E #1F2D7F #2B3EB0 #465BD2
Accessibility & contrast
On white
12.07
#1F2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#1F2D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D7F
12.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D7F | 1.00 | 12.07 | 1.74 | 12.07 |
| #FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2d7f; /* rgb */ color: rgb(31, 45, 127); /* oklch */ color: oklch(34.3% 0.139 269.9);
Tailwind
colors: {
custom: {
50: '#6a65a5',
500: '#1f2d7f',
950: '#000000',
},
}SCSS
$custom: #1f2d7f; $custom-light: #6a65a5; $custom-dark: #000000;
JSON
{
"hex": "#1f2d7f",
"rgb": {
"r": 31,
"g": 45,
"b": 127
},
"hsl": {
"h": 231.25,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.34296,
"c": 0.13867,
"h": 269.9
},
"luminance": 0.037
}Semantic roles & 50–950 ramp
primary
#1F2D7F
secondary
#B2A348
accent
#CD44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F