#1F2997#1F2997
#1F2997 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.176 H 270.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2997 |
|---|---|
| RGB | rgb(31, 41, 151) |
| HSL | hsl(235, 66%, 36%) |
| HSV | hsv(235, 79%, 59%) |
| CMYK | cmyk(79.5%, 72.8%, 0%, 40.8%) |
| CIE-LAB | lab(24.03, 36.44, -60.68) |
| CIE-LCH | lch(24.03, 70.78, 300.99°) |
| OKLab | oklab(36.02% 0 -0.1757) |
| OKLCH | oklch(36.02% 0.176 270) |
| XYZ | xyz(6.9420, 4.1108, 29.6997) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.24
Sapphire (survey)
#2138AB
ΔE00 4.78
Indigo Blue
#3A18B1
ΔE00 6.03
Cobalt Blue
#030AA7
ΔE00 6.09
Royal Blue (survey)
#0504AA
ΔE00 6.67
Midnight Blue
#191970
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2997 #978D1F
analogous
#1F6597 #1F2997 #511F97
triadic
#1F2997 #971F29 #29971F
tetradic
#1F2997 #971F65 #978D1F #1F9751
square
#1F2997 #971F65 #978D1F #1F9751
split-complementary
#1F2997 #97511F #65971F
monochromatic
#0A0D31 #151B64 #1F2997 #2937CA #5460DC
Accessibility & contrast
On white
11.52
#1F2997 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#1F2997 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2997
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2997 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2997 | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2997; /* rgb */ color: rgb(31, 41, 151); /* oklch */ color: oklch(36.0% 0.176 270.0);
Tailwind
colors: {
custom: {
50: '#7163b7',
500: '#1f2997',
950: '#000000',
},
}SCSS
$custom: #1f2997; $custom-light: #7163b7; $custom-dark: #000000;
JSON
{
"hex": "#1f2997",
"rgb": {
"r": 31,
"g": 41,
"b": 151
},
"hsl": {
"h": 235,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.36018,
"c": 0.17574,
"h": 270
},
"luminance": 0.04112
}Semantic roles & 50–950 ramp
primary
#1F2997
secondary
#BFB652
accent
#DB3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80