#1F368D#1F368D
#1F368D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.147 H 267.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).
Color values
| HEX | #1F368D |
|---|---|
| RGB | rgb(31, 54, 141) |
| HSL | hsl(227, 64%, 34%) |
| HSV | hsv(227, 78%, 55%) |
| CMYK | cmyk(78%, 61.7%, 0%, 44.7%) |
| CIE-LAB | lab(26.31, 24.08, -50.78) |
| CIE-LCH | lch(26.31, 56.20, 295.37°) |
| OKLab | oklab(37.39% -0.0069 -0.1467) |
| OKLCH | oklch(37.39% 0.147 267.3) |
| XYZ | xyz(6.6903, 4.8520, 25.7781) |
| Luminance | 0.0485 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.47
Blueberry
#464196
ΔE00 5.98
Cobalt (survey)
#1E488F
ΔE00 6.47
Darkish Blue
#014182
ΔE00 6.49
Darkslateblue
#483D8B
ΔE00 6.50
Cobalt
#0047AB
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F368D #8D761F
analogous
#1F6D8D #1F368D #3F1F8D
triadic
#1F368D #8D1F36 #368D1F
tetradic
#1F368D #8D1F6D #8D761F #1F8D3F
square
#1F368D #8D1F6D #8D761F #1F8D3F
split-complementary
#1F368D #8D3F1F #6D8D1F
monochromatic
#091029 #14235B #1F368D #2A49BF #4E6BD8
Accessibility & contrast
On white
10.66
#1F368D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#1F368D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F368D
10.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F368D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F368D | 1.00 | 10.66 | 1.97 | 10.66 |
| #FFFFFF | 10.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #1f368d; /* rgb */ color: rgb(31, 54, 141); /* oklch */ color: oklch(37.4% 0.147 267.3);
Tailwind
colors: {
custom: {
50: '#6d6caf',
500: '#1f368d',
950: '#000000',
},
}SCSS
$custom: #1f368d; $custom-light: #6d6caf; $custom-dark: #000000;
JSON
{
"hex": "#1f368d",
"rgb": {
"r": 31,
"g": 54,
"b": 141
},
"hsl": {
"h": 227.455,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.3739,
"c": 0.14687,
"h": 267.3
},
"luminance": 0.04853
}Semantic roles & 50–950 ramp
primary
#1F368D
secondary
#BBA44D
accent
#C441E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F