#1F2E8F#1F2E8F
#1F2E8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.160 H 269.4°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E8F |
|---|---|
| RGB | rgb(31, 46, 143) |
| HSL | hsl(232, 64%, 34%) |
| HSV | hsv(232, 78%, 56%) |
| CMYK | cmyk(78.3%, 67.8%, 0%, 43.9%) |
| CIE-LAB | lab(24.41, 30.27, -55.13) |
| CIE-LCH | lch(24.41, 62.89, 298.77°) |
| OKLab | oklab(36.05% -0.0018 -0.1595) |
| OKLCH | oklch(36.05% 0.16 269.4) |
| XYZ | xyz(6.4983, 4.2277, 26.4548) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.62
Royal
#0C1793
ΔE00 5.89
Blueberry
#464196
ΔE00 6.83
Midnight Blue
#191970
ΔE00 6.83
Darkslateblue
#483D8B
ΔE00 6.93
Indigo Blue
#3A18B1
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E8F #8F801F
analogous
#1F668F #1F2E8F #481F8F
triadic
#1F2E8F #8F1F2E #2E8F1F
tetradic
#1F2E8F #8F1F66 #8F801F #1F8F48
square
#1F2E8F #8F1F66 #8F801F #1F8F48
split-complementary
#1F2E8F #8F481F #668F1F
monochromatic
#090E2A #141E5D #1F2E8F #2A3EC1 #4F62D9
Accessibility & contrast
On white
11.38
#1F2E8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#1F2E8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E8F
11.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E8F | 1.00 | 11.38 | 1.85 | 11.38 |
| #FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f2e8f; /* rgb */ color: rgb(31, 46, 143); /* oklch */ color: oklch(36.0% 0.160 269.4);
Tailwind
colors: {
custom: {
50: '#6e67b1',
500: '#1f2e8f',
950: '#000000',
},
}SCSS
$custom: #1f2e8f; $custom-light: #6e67b1; $custom-dark: #000000;
JSON
{
"hex": "#1f2e8f",
"rgb": {
"r": 31,
"g": 46,
"b": 143
},
"hsl": {
"h": 231.964,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.36047,
"c": 0.15953,
"h": 269.4
},
"luminance": 0.04228
}Semantic roles & 50–950 ramp
primary
#1F2E8F
secondary
#BCAD4E
accent
#D140E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80