#1F318D#1F318D
#1F318D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.153 H 268.7°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).
Color values
| HEX | #1F318D |
|---|---|
| RGB | rgb(31, 49, 141) |
| HSL | hsl(230, 64%, 34%) |
| HSV | hsv(230, 78%, 55%) |
| CMYK | cmyk(78%, 65.2%, 0%, 44.7%) |
| CIE-LAB | lab(24.98, 27.49, -52.95) |
| CIE-LCH | lch(24.98, 59.66, 297.44°) |
| OKLab | oklab(36.41% -0.0035 -0.1531) |
| OKLCH | oklch(36.41% 0.153 268.7) |
| XYZ | xyz(6.4694, 4.4103, 25.7045) |
| Luminance | 0.0441 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.56
Blueberry
#464196
ΔE00 6.43
Darkslateblue
#483D8B
ΔE00 6.63
Royal
#0C1793
ΔE00 6.95
Midnight Blue
#191970
ΔE00 7.44
Darkish Blue
#014182
ΔE00 8.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F318D #8D7B1F
analogous
#1F688D #1F318D #441F8D
triadic
#1F318D #8D1F31 #318D1F
tetradic
#1F318D #8D1F68 #8D7B1F #1F8D44
square
#1F318D #8D1F68 #8D7B1F #1F8D44
split-complementary
#1F318D #8D441F #688D1F
monochromatic
#090E29 #14205B #1F318D #2A42BF #4E65D8
Accessibility & contrast
On white
11.16
#1F318D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#1F318D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F318D
11.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F318D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F318D | 1.00 | 11.16 | 1.88 | 11.16 |
| #FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #1f318d; /* rgb */ color: rgb(31, 49, 141); /* oklch */ color: oklch(36.4% 0.153 268.7);
Tailwind
colors: {
custom: {
50: '#6d69af',
500: '#1f318d',
950: '#000000',
},
}SCSS
$custom: #1f318d; $custom-light: #6d69af; $custom-dark: #000000;
JSON
{
"hex": "#1f318d",
"rgb": {
"r": 31,
"g": 49,
"b": 141
},
"hsl": {
"h": 230.182,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.36409,
"c": 0.15316,
"h": 268.7
},
"luminance": 0.04411
}Semantic roles & 50–950 ramp
primary
#1F318D
secondary
#BBA94D
accent
#CC41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F