#1F2E97#1F2E97
#1F2E97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.170 H 269.2°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2E97 |
|---|---|
| RGB | rgb(31, 46, 151) |
| HSL | hsl(233, 66%, 36%) |
| HSV | hsv(233, 79%, 59%) |
| CMYK | cmyk(79.5%, 69.5%, 0%, 40.8%) |
| CIE-LAB | lab(25.20, 33.27, -58.77) |
| CIE-LCH | lch(25.20, 67.53, 299.51°) |
| OKLab | oklab(36.86% -0.0024 -0.1702) |
| OKLCH | oklch(36.86% 0.17 269.2) |
| XYZ | xyz(7.1261, 4.4789, 29.7611) |
| Luminance | 0.0448 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.76
Royal
#0C1793
ΔE00 5.63
Blueberry
#464196
ΔE00 6.79
Indigo Blue
#3A18B1
ΔE00 7.05
Darkslateblue
#483D8B
ΔE00 7.15
Cobalt Blue
#030AA7
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2E97 #97881F
analogous
#1F6A97 #1F2E97 #4C1F97
triadic
#1F2E97 #971F2E #2E971F
tetradic
#1F2E97 #971F6A #97881F #1F974C
square
#1F2E97 #971F6A #97881F #1F974C
split-complementary
#1F2E97 #974C1F #6A971F
monochromatic
#0A0F31 #151F64 #1F2E97 #293DCA #5465DC
Accessibility & contrast
On white
11.08
#1F2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#1F2E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2E97
11.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2E97 | 1.00 | 11.08 | 1.90 | 11.08 |
| #FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f2e97; /* rgb */ color: rgb(31, 46, 151); /* oklch */ color: oklch(36.9% 0.170 269.2);
Tailwind
colors: {
custom: {
50: '#7067b7',
500: '#1f2e97',
950: '#000000',
},
}SCSS
$custom: #1f2e97; $custom-light: #7067b7; $custom-dark: #000000;
JSON
{
"hex": "#1f2e97",
"rgb": {
"r": 31,
"g": 46,
"b": 151
},
"hsl": {
"h": 232.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.36856,
"c": 0.17018,
"h": 269.2
},
"luminance": 0.0448
}Semantic roles & 50–950 ramp
primary
#1F2E97
secondary
#BFB252
accent
#D43FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80