#1F2B7E#1F2B7E
#1F2B7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.140 H 270.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B7E |
|---|---|
| RGB | rgb(31, 43, 126) |
| HSL | hsl(232, 61%, 31%) |
| HSV | hsv(232, 75%, 49%) |
| CMYK | cmyk(75.4%, 65.9%, 0%, 50.6%) |
| CIE-LAB | lab(22.03, 25.79, -48.38) |
| CIE-LCH | lch(22.03, 54.83, 298.06°) |
| OKLab | oklab(33.81% 0.0012 -0.1398) |
| OKLCH | oklch(33.81% 0.14 270.5) |
| XYZ | xyz(5.1936, 3.5249, 20.1413) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.19
Royal
#0C1793
ΔE00 6.50
Sapphire (survey)
#2138AB
ΔE00 7.14
Marine
#042E60
ΔE00 7.14
Darkslateblue
#483D8B
ΔE00 7.37
Blueberry
#464196
ΔE00 7.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B7E #7E721F
analogous
#1F5A7E #1F2B7E #421F7E
triadic
#1F2B7E #7E1F2B #2B7E1F
tetradic
#1F2B7E #7E1F5A #7E721F #1F7E42
square
#1F2B7E #7E1F5A #7E721F #1F7E42
split-complementary
#1F2B7E #7E421F #5A7E1F
monochromatic
#07091C #131A4D #1F2B7E #2B3CAF #4658D1
Accessibility & contrast
On white
12.32
#1F2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F2B7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B7E
12.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B7E | 1.00 | 12.32 | 1.70 | 12.32 |
| #FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2b7e; /* rgb */ color: rgb(31, 43, 126); /* oklch */ color: oklch(33.8% 0.140 270.5);
Tailwind
colors: {
custom: {
50: '#6a64a4',
500: '#1f2b7e',
950: '#000000',
},
}SCSS
$custom: #1f2b7e; $custom-light: #6a64a4; $custom-dark: #000000;
JSON
{
"hex": "#1f2b7e",
"rgb": {
"r": 31,
"g": 43,
"b": 126
},
"hsl": {
"h": 232.421,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.33812,
"c": 0.13981,
"h": 270.5
},
"luminance": 0.03525
}Semantic roles & 50–950 ramp
primary
#1F2B7E
secondary
#B1A448
accent
#CF44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F