#1F3397#1F3397
#1F3397 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.164 H 268.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).
Color values
| HEX | #1F3397 |
|---|---|
| RGB | rgb(31, 51, 151) |
| HSL | hsl(230, 66%, 36%) |
| HSV | hsv(230, 79%, 59%) |
| CMYK | cmyk(79.5%, 66.2%, 0%, 40.8%) |
| CIE-LAB | lab(26.43, 29.98, -56.75) |
| CIE-LCH | lch(26.43, 64.18, 297.85°) |
| OKLab | oklab(37.76% -0.0052 -0.1642) |
| OKLCH | oklch(37.76% 0.164 268.2) |
| XYZ | xyz(7.3329, 4.8925, 29.8300) |
| Luminance | 0.0489 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.05
Blueberry
#464196
ΔE00 6.02
Darkslateblue
#483D8B
ΔE00 6.69
Royal
#0C1793
ΔE00 7.14
Cobalt
#0047AB
ΔE00 7.22
Blue Blue
#2242C7
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F3397 #97831F
analogous
#1F6F97 #1F3397 #471F97
triadic
#1F3397 #971F33 #33971F
tetradic
#1F3397 #971F6F #97831F #1F9747
square
#1F3397 #971F6F #97831F #1F9747
split-complementary
#1F3397 #97471F #6F971F
monochromatic
#0A1131 #152264 #1F3397 #2944CA #546BDC
Accessibility & contrast
On white
10.61
#1F3397 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#1F3397 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F3397
10.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F3397 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F3397 | 1.00 | 10.61 | 1.98 | 10.61 |
| #FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f3397; /* rgb */ color: rgb(31, 51, 151); /* oklch */ color: oklch(37.8% 0.164 268.2);
Tailwind
colors: {
custom: {
50: '#706ab7',
500: '#1f3397',
950: '#000000',
},
}SCSS
$custom: #1f3397; $custom-light: #706ab7; $custom-dark: #000000;
JSON
{
"hex": "#1f3397",
"rgb": {
"r": 31,
"g": 51,
"b": 151
},
"hsl": {
"h": 230,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.37755,
"c": 0.16431,
"h": 268.2
},
"luminance": 0.04893
}Semantic roles & 50–950 ramp
primary
#1F3397
secondary
#BFAD52
accent
#CD3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80