#1F2B7D#1F2B7D
#1F2B7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.138 H 270.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B7D |
|---|---|
| RGB | rgb(31, 43, 125) |
| HSL | hsl(232, 60%, 31%) |
| HSV | hsv(232, 75%, 49%) |
| CMYK | cmyk(75.2%, 65.6%, 0%, 51%) |
| CIE-LAB | lab(21.94, 25.41, -47.90) |
| CIE-LCH | lch(21.94, 54.22, 297.94°) |
| OKLab | oklab(33.72% 0.0012 -0.1384) |
| OKLCH | oklch(33.72% 0.138 270.5) |
| XYZ | xyz(5.1294, 3.4992, 19.8031) |
| Luminance | 0.0350 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.18
Royal
#0C1793
ΔE00 6.63
Marine
#042E60
ΔE00 7.02
Sapphire (survey)
#2138AB
ΔE00 7.28
Darkslateblue
#483D8B
ΔE00 7.40
Blueberry
#464196
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B7D #7D711F
analogous
#1F5A7D #1F2B7D #421F7D
triadic
#1F2B7D #7D1F2B #2B7D1F
tetradic
#1F2B7D #7D1F5A #7D711F #1F7D42
square
#1F2B7D #7D1F5A #7D711F #1F7D42
split-complementary
#1F2B7D #7D421F #5A7D1F
monochromatic
#07091B #131A4C #1F2B7D #2B3CAE #4557D1
Accessibility & contrast
On white
12.35
#1F2B7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F2B7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B7D
12.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B7D | 1.00 | 12.35 | 1.70 | 12.35 |
| #FFFFFF | 12.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2b7d; /* rgb */ color: rgb(31, 43, 125); /* oklch */ color: oklch(33.7% 0.138 270.5);
Tailwind
colors: {
custom: {
50: '#6a64a3',
500: '#1f2b7d',
950: '#000000',
},
}SCSS
$custom: #1f2b7d; $custom-light: #6a64a3; $custom-dark: #000000;
JSON
{
"hex": "#1f2b7d",
"rgb": {
"r": 31,
"g": 43,
"b": 125
},
"hsl": {
"h": 232.34,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.33716,
"c": 0.1384,
"h": 270.5
},
"luminance": 0.035
}Semantic roles & 50–950 ramp
primary
#1F2B7D
secondary
#B0A348
accent
#CF44E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F