#1F337D#1F337D
#1F337D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.128 H 267.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).
Color values
| HEX | #1F337D |
|---|---|
| RGB | rgb(31, 51, 125) |
| HSL | hsl(227, 60%, 31%) |
| HSV | hsv(227, 75%, 49%) |
| CMYK | cmyk(75.2%, 59.2%, 0%, 51%) |
| CIE-LAB | lab(24.13, 19.84, -44.34) |
| CIE-LCH | lch(24.13, 48.57, 294.11°) |
| OKLab | oklab(35.34% -0.005 -0.1278) |
| OKLCH | oklch(35.34% 0.128 267.8) |
| XYZ | xyz(5.4493, 4.1391, 19.9098) |
| Luminance | 0.0414 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 5.66
Marine Blue
#01386A
ΔE00 6.24
Darkish Blue
#014182
ΔE00 6.63
Sapphire (survey)
#2138AB
ΔE00 6.93
Darkslateblue
#483D8B
ΔE00 7.02
Blueberry
#464196
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F337D #7D691F
analogous
#1F627D #1F337D #3A1F7D
triadic
#1F337D #7D1F33 #337D1F
tetradic
#1F337D #7D1F62 #7D691F #1F7D3A
square
#1F337D #7D1F62 #7D691F #1F7D3A
split-complementary
#1F337D #7D3A1F #627D1F
monochromatic
#070B1B #131F4C #1F337D #2B47AE #4563D1
Accessibility & contrast
On white
11.49
#1F337D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#1F337D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F337D
11.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F337D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F337D | 1.00 | 11.49 | 1.83 | 11.49 |
| #FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004552
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f337d; /* rgb */ color: rgb(31, 51, 125); /* oklch */ color: oklch(35.3% 0.128 267.8);
Tailwind
colors: {
custom: {
50: '#696aa3',
500: '#1f337d',
950: '#000000',
},
}SCSS
$custom: #1f337d; $custom-light: #696aa3; $custom-dark: #000000;
JSON
{
"hex": "#1f337d",
"rgb": {
"r": 31,
"g": 51,
"b": 125
},
"hsl": {
"h": 227.234,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.35337,
"c": 0.12793,
"h": 267.8
},
"luminance": 0.0414
}Semantic roles & 50–950 ramp
primary
#1F337D
secondary
#B09A48
accent
#C244E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F