#1F2D97#1F2D97
#1F2D97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.171 H 269.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D97 |
|---|---|
| RGB | rgb(31, 45, 151) |
| HSL | hsl(233, 66%, 36%) |
| HSV | hsv(233, 79%, 59%) |
| CMYK | cmyk(79.5%, 70.2%, 0%, 40.8%) |
| CIE-LAB | lab(24.96, 33.91, -59.16) |
| CIE-LCH | lch(24.96, 68.19, 299.82°) |
| OKLab | oklab(36.68% -0.0019 -0.1713) |
| OKLCH | oklch(36.68% 0.171 269.4) |
| XYZ | xyz(7.0875, 4.4016, 29.7482) |
| Luminance | 0.0440 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.95
Royal
#0C1793
ΔE00 5.34
Indigo Blue
#3A18B1
ΔE00 6.83
Blueberry
#464196
ΔE00 6.97
Cobalt Blue
#030AA7
ΔE00 7.16
Darkslateblue
#483D8B
ΔE00 7.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D97 #97891F
analogous
#1F6997 #1F2D97 #4D1F97
triadic
#1F2D97 #971F2D #2D971F
tetradic
#1F2D97 #971F69 #97891F #1F974D
square
#1F2D97 #971F69 #97891F #1F974D
split-complementary
#1F2D97 #974D1F #69971F
monochromatic
#0A0F31 #151E64 #1F2D97 #293CCA #5464DC
Accessibility & contrast
On white
11.17
#1F2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#1F2D97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D97
11.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D97 | 1.00 | 11.17 | 1.88 | 11.17 |
| #FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1f2d97; /* rgb */ color: rgb(31, 45, 151); /* oklch */ color: oklch(36.7% 0.171 269.4);
Tailwind
colors: {
custom: {
50: '#7066b7',
500: '#1f2d97',
950: '#000000',
},
}SCSS
$custom: #1f2d97; $custom-light: #7066b7; $custom-dark: #000000;
JSON
{
"hex": "#1f2d97",
"rgb": {
"r": 31,
"g": 45,
"b": 151
},
"hsl": {
"h": 233,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.36684,
"c": 0.17132,
"h": 269.4
},
"luminance": 0.04402
}Semantic roles & 50–950 ramp
primary
#1F2D97
secondary
#BFB352
accent
#D53FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80