#1F2E7B#1F2E7B
#1F2E7B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.132 H 269.6°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E7B |
|---|---|
| RGB | rgb(31, 46, 123) |
| HSL | hsl(230, 60%, 30%) |
| HSV | hsv(230, 75%, 48%) |
| CMYK | cmyk(74.8%, 62.6%, 0%, 51.8%) |
| CIE-LAB | lab(22.57, 22.55, -45.61) |
| CIE-LCH | lch(22.57, 50.88, 296.31°) |
| OKLab | oklab(34.12% -0.001 -0.1316) |
| OKLCH | oklch(34.12% 0.132 269.6) |
| XYZ | xyz(5.1160, 3.6748, 19.1747) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.15
Midnight Blue
#191970
ΔE00 6.16
Darkslateblue
#483D8B
ΔE00 7.22
Sapphire (survey)
#2138AB
ΔE00 7.34
Marine Blue
#01386A
ΔE00 7.46
Royal
#0C1793
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E7B #7B6C1F
analogous
#1F5C7B #1F2E7B #3E1F7B
triadic
#1F2E7B #7B1F2E #2E7B1F
tetradic
#1F2E7B #7B1F5C #7B6C1F #1F7B3E
square
#1F2E7B #7B1F5C #7B6C1F #1F7B3E
split-complementary
#1F2E7B #7B3E1F #5C7B1F
monochromatic
#060919 #131C4A #1F2E7B #2B40AC #445BD0
Accessibility & contrast
On white
12.10
#1F2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#1F2E7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E7B
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E7B | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2e7b; /* rgb */ color: rgb(31, 46, 123); /* oklch */ color: oklch(34.1% 0.132 269.6);
Tailwind
colors: {
custom: {
50: '#6966a2',
500: '#1f2e7b',
950: '#000000',
},
}SCSS
$custom: #1f2e7b; $custom-light: #6966a2; $custom-dark: #000000;
JSON
{
"hex": "#1f2e7b",
"rgb": {
"r": 31,
"g": 46,
"b": 123
},
"hsl": {
"h": 230.217,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.34121,
"c": 0.13165,
"h": 269.6
},
"luminance": 0.03675
}Semantic roles & 50–950 ramp
primary
#1F2E7B
secondary
#AE9E48
accent
#C945E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F