#1F2E7F#1F2E7F
#1F2E7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.137 H 269.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E7F |
|---|---|
| RGB | rgb(31, 46, 127) |
| HSL | hsl(231, 61%, 31%) |
| HSV | hsv(231, 76%, 50%) |
| CMYK | cmyk(75.6%, 63.8%, 0%, 50.2%) |
| CIE-LAB | lab(22.92, 24.12, -47.56) |
| CIE-LCH | lch(22.92, 53.33, 296.89°) |
| OKLab | oklab(34.49% -0.001 -0.1374) |
| OKLCH | oklch(34.49% 0.137 269.6) |
| XYZ | xyz(5.3715, 3.7770, 20.5205) |
| Luminance | 0.0378 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 6.14
Marine
#042E60
ΔE00 6.67
Sapphire (survey)
#2138AB
ΔE00 6.75
Darkslateblue
#483D8B
ΔE00 7.05
Royal
#0C1793
ΔE00 7.27
Blueberry
#464196
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E7F #7F701F
analogous
#1F5E7F #1F2E7F #401F7F
triadic
#1F2E7F #7F1F2E #2E7F1F
tetradic
#1F2E7F #7F1F5E #7F701F #1F7F40
square
#1F2E7F #7F1F5E #7F701F #1F7F40
split-complementary
#1F2E7F #7F401F #5E7F1F
monochromatic
#070A1D #131C4E #1F2E7F #2B40B0 #465CD2
Accessibility & contrast
On white
11.96
#1F2E7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#1F2E7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E7F
11.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E7F | 1.00 | 11.96 | 1.76 | 11.96 |
| #FFFFFF | 11.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f2e7f; /* rgb */ color: rgb(31, 46, 127); /* oklch */ color: oklch(34.5% 0.137 269.6);
Tailwind
colors: {
custom: {
50: '#6a66a5',
500: '#1f2e7f',
950: '#000000',
},
}SCSS
$custom: #1f2e7f; $custom-light: #6a66a5; $custom-dark: #000000;
JSON
{
"hex": "#1f2e7f",
"rgb": {
"r": 31,
"g": 46,
"b": 127
},
"hsl": {
"h": 230.625,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.34494,
"c": 0.13738,
"h": 269.6
},
"luminance": 0.03778
}Semantic roles & 50–950 ramp
primary
#1F2E7F
secondary
#B2A148
accent
#CB44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F