#1F2F8E#1F2F8E
#1F2F8E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.157 H 269.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F8E |
|---|---|
| RGB | rgb(31, 47, 142) |
| HSL | hsl(231, 64%, 34%) |
| HSV | hsv(231, 78%, 56%) |
| CMYK | cmyk(78.2%, 66.9%, 0%, 44.3%) |
| CIE-LAB | lab(24.57, 29.22, -54.25) |
| CIE-LCH | lch(24.57, 61.62, 298.31°) |
| OKLab | oklab(36.13% -0.0023 -0.157) |
| OKLCH | oklch(36.13% 0.157 269.1) |
| XYZ | xyz(6.4624, 4.2766, 26.0708) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.61
Royal
#0C1793
ΔE00 6.25
Blueberry
#464196
ΔE00 6.69
Darkslateblue
#483D8B
ΔE00 6.81
Midnight Blue
#191970
ΔE00 6.99
Indigo Blue
#3A18B1
ΔE00 8.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F8E #8E7E1F
analogous
#1F678E #1F2F8E #471F8E
triadic
#1F2F8E #8E1F2F #2F8E1F
tetradic
#1F2F8E #8E1F67 #8E7E1F #1F8E47
square
#1F2F8E #8E1F67 #8E7E1F #1F8E47
split-complementary
#1F2F8E #8E471F #678E1F
monochromatic
#090E2A #141E5C #1F2F8E #2A40C0 #4F63D9
Accessibility & contrast
On white
11.32
#1F2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#1F2F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F8E
11.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F8E | 1.00 | 11.32 | 1.86 | 11.32 |
| #FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f2f8e; /* rgb */ color: rgb(31, 47, 142); /* oklch */ color: oklch(36.1% 0.157 269.1);
Tailwind
colors: {
custom: {
50: '#6e67b0',
500: '#1f2f8e',
950: '#000000',
},
}SCSS
$custom: #1f2f8e; $custom-light: #6e67b0; $custom-dark: #000000;
JSON
{
"hex": "#1f2f8e",
"rgb": {
"r": 31,
"g": 47,
"b": 142
},
"hsl": {
"h": 231.351,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.36131,
"c": 0.15698,
"h": 269.1
},
"luminance": 0.04277
}Semantic roles & 50–950 ramp
primary
#1F2F8E
secondary
#BBAC4D
accent
#CF41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80