#1F2E7E#1F2E7E
#1F2E7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.136 H 269.6°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E7E |
|---|---|
| RGB | rgb(31, 46, 126) |
| HSL | hsl(231, 61%, 31%) |
| HSV | hsv(231, 75%, 49%) |
| CMYK | cmyk(75.4%, 63.5%, 0%, 50.6%) |
| CIE-LAB | lab(22.83, 23.73, -47.08) |
| CIE-LCH | lch(22.83, 52.72, 296.75°) |
| OKLab | oklab(34.4% -0.001 -0.1359) |
| OKLCH | oklch(34.4% 0.136 269.6) |
| XYZ | xyz(5.3067, 3.7511, 20.1790) |
| Luminance | 0.0375 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 6.14
Marine
#042E60
ΔE00 6.54
Sapphire (survey)
#2138AB
ΔE00 6.90
Darkslateblue
#483D8B
ΔE00 7.09
Royal
#0C1793
ΔE00 7.38
Blueberry
#464196
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E7E #7E6F1F
analogous
#1F5D7E #1F2E7E #3F1F7E
triadic
#1F2E7E #7E1F2E #2E7E1F
tetradic
#1F2E7E #7E1F5D #7E6F1F #1F7E3F
square
#1F2E7E #7E1F5D #7E6F1F #1F7E3F
split-complementary
#1F2E7E #7E3F1F #5D7E1F
monochromatic
#070A1C #131C4D #1F2E7E #2B40AF #465CD1
Accessibility & contrast
On white
12.00
#1F2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#1F2E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E7E
12.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E7E | 1.00 | 12.00 | 1.75 | 12.00 |
| #FFFFFF | 12.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2e7e; /* rgb */ color: rgb(31, 46, 126); /* oklch */ color: oklch(34.4% 0.136 269.6);
Tailwind
colors: {
custom: {
50: '#6a66a4',
500: '#1f2e7e',
950: '#000000',
},
}SCSS
$custom: #1f2e7e; $custom-light: #6a66a4; $custom-dark: #000000;
JSON
{
"hex": "#1f2e7e",
"rgb": {
"r": 31,
"g": 46,
"b": 126
},
"hsl": {
"h": 230.526,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.344,
"c": 0.13595,
"h": 269.6
},
"luminance": 0.03752
}Semantic roles & 50–950 ramp
primary
#1F2E7E
secondary
#B1A048
accent
#CA44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F