#31319E#31319E
#31319E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.171 H 275.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).
Color values
| HEX | #31319E |
|---|---|
| RGB | rgb(49, 49, 158) |
| HSL | hsl(240, 53%, 41%) |
| HSV | hsv(240, 69%, 62%) |
| CMYK | cmyk(69%, 69%, 0%, 38%) |
| CIE-LAB | lab(27.62, 35.88, -59.02) |
| CIE-LCH | lch(27.62, 69.07, 301.29°) |
| OKLab | oklab(39.1% 0.0151 -0.1705) |
| OKLCH | oklch(39.1% 0.171 275.1) |
| XYZ | xyz(8.5345, 5.3174, 32.9177) |
| Luminance | 0.0532 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.18
Blueberry
#464196
ΔE00 5.43
Darkslateblue
#483D8B
ΔE00 5.99
Indigo Blue
#3A18B1
ΔE00 6.05
Ocean Blue
#4F42B5
ΔE00 6.50
Royal
#0C1793
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31319E #9E9E31
analogous
#31679E #31319E #67319E
triadic
#31319E #9E3131 #319E31
tetradic
#31319E #9E3167 #9E9E31 #319E67
square
#31319E #9E3167 #9E9E31 #319E67
split-complementary
#31319E #9E6731 #679E31
monochromatic
#141441 #23236F #31319E #4646C6 #7575D4
Accessibility & contrast
On white
10.18
#31319E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#31319E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31319E
10.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31319E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31319E | 1.00 | 10.18 | 2.06 | 10.18 |
| #FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #31319e; /* rgb */ color: rgb(49, 49, 158); /* oklch */ color: oklch(39.1% 0.171 275.1);
Tailwind
colors: {
custom: {
50: '#786abc',
500: '#31319e',
950: '#000000',
},
}SCSS
$custom: #31319e; $custom-light: #786abc; $custom-dark: #000000;
JSON
{
"hex": "#31319e",
"rgb": {
"r": 49,
"g": 49,
"b": 158
},
"hsl": {
"h": 240,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.39099,
"c": 0.17115,
"h": 275.1
},
"luminance": 0.05318
}Semantic roles & 50–950 ramp
primary
#31319E
secondary
#BCBC6E
accent
#DC4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81