#1F318F#1F318F
#1F318F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.156 H 268.7°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).
Color values
| HEX | #1F318F |
|---|---|
| RGB | rgb(31, 49, 143) |
| HSL | hsl(230, 64%, 34%) |
| HSV | hsv(230, 78%, 56%) |
| CMYK | cmyk(78.3%, 65.7%, 0%, 43.9%) |
| CIE-LAB | lab(25.17, 28.26, -53.88) |
| CIE-LCH | lch(25.17, 60.84, 297.68°) |
| OKLab | oklab(36.6% -0.0036 -0.1559) |
| OKLCH | oklch(36.6% 0.156 268.7) |
| XYZ | xyz(6.6196, 4.4704, 26.4953) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.28
Blueberry
#464196
ΔE00 6.38
Darkslateblue
#483D8B
ΔE00 6.64
Royal
#0C1793
ΔE00 6.83
Midnight Blue
#191970
ΔE00 7.55
Cobalt
#0047AB
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F318F #8F7D1F
analogous
#1F698F #1F318F #451F8F
triadic
#1F318F #8F1F31 #318F1F
tetradic
#1F318F #8F1F69 #8F7D1F #1F8F45
square
#1F318F #8F1F69 #8F7D1F #1F8F45
split-complementary
#1F318F #8F451F #698F1F
monochromatic
#090F2A #14205D #1F318F #2A42C1 #4F66D9
Accessibility & contrast
On white
11.09
#1F318F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#1F318F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F318F
11.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F318F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F318F | 1.00 | 11.09 | 1.89 | 11.09 |
| #FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #1f318f; /* rgb */ color: rgb(31, 49, 143); /* oklch */ color: oklch(36.6% 0.156 268.7);
Tailwind
colors: {
custom: {
50: '#6e69b1',
500: '#1f318f',
950: '#000000',
},
}SCSS
$custom: #1f318f; $custom-light: #6e69b1; $custom-dark: #000000;
JSON
{
"hex": "#1f318f",
"rgb": {
"r": 31,
"g": 49,
"b": 143
},
"hsl": {
"h": 230.357,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.36603,
"c": 0.1559,
"h": 268.7
},
"luminance": 0.04471
}Semantic roles & 50–950 ramp
primary
#1F318F
secondary
#BCAA4E
accent
#CD40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80