#1F2F97#1F2F97
#1F2F97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.169 H 269.0°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2F97 |
|---|---|
| RGB | rgb(31, 47, 151) |
| HSL | hsl(232, 66%, 36%) |
| HSV | hsv(232, 79%, 59%) |
| CMYK | cmyk(79.5%, 68.9%, 0%, 40.8%) |
| CIE-LAB | lab(25.44, 32.62, -58.37) |
| CIE-LCH | lch(25.44, 66.87, 299.20°) |
| OKLab | oklab(37.03% -0.003 -0.169) |
| OKLCH | oklch(37.03% 0.169 269) |
| XYZ | xyz(7.1656, 4.5579, 29.7743) |
| Luminance | 0.0456 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.58
Royal
#0C1793
ΔE00 5.92
Blueberry
#464196
ΔE00 6.62
Darkslateblue
#483D8B
ΔE00 7.03
Indigo Blue
#3A18B1
ΔE00 7.28
Midnight Blue
#191970
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2F97 #97871F
analogous
#1F6B97 #1F2F97 #4B1F97
triadic
#1F2F97 #971F2F #2F971F
tetradic
#1F2F97 #971F6B #97871F #1F974B
square
#1F2F97 #971F6B #97871F #1F974B
split-complementary
#1F2F97 #974B1F #6B971F
monochromatic
#0A0F31 #151F64 #1F2F97 #293FCA #5466DC
Accessibility & contrast
On white
10.98
#1F2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#1F2F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2F97
10.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2F97 | 1.00 | 10.98 | 1.91 | 10.98 |
| #FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f2f97; /* rgb */ color: rgb(31, 47, 151); /* oklch */ color: oklch(37.0% 0.169 269.0);
Tailwind
colors: {
custom: {
50: '#7067b7',
500: '#1f2f97',
950: '#000000',
},
}SCSS
$custom: #1f2f97; $custom-light: #7067b7; $custom-dark: #000000;
JSON
{
"hex": "#1f2f97",
"rgb": {
"r": 31,
"g": 47,
"b": 151
},
"hsl": {
"h": 232,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.37031,
"c": 0.16903,
"h": 269
},
"luminance": 0.04559
}Semantic roles & 50–950 ramp
primary
#1F2F97
secondary
#BFB152
accent
#D23FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80