#31329E#31329E
#31329E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.170 H 274.8°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).
Color values
| HEX | #31329E |
|---|---|
| RGB | rgb(49, 50, 158) |
| HSL | hsl(239, 53%, 41%) |
| HSV | hsv(239, 69%, 62%) |
| CMYK | cmyk(69%, 68.4%, 0%, 38%) |
| CIE-LAB | lab(27.85, 35.25, -58.65) |
| CIE-LCH | lch(27.85, 68.43, 301.01°) |
| OKLab | oklab(39.27% 0.0144 -0.1694) |
| OKLCH | oklch(39.27% 0.17 274.8) |
| XYZ | xyz(8.5767, 5.4020, 32.9318) |
| Luminance | 0.0540 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.99
Blueberry
#464196
ΔE00 5.22
Darkslateblue
#483D8B
ΔE00 5.85
Indigo Blue
#3A18B1
ΔE00 6.30
Ocean Blue
#4F42B5
ΔE00 6.36
Royal
#0C1793
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31329E #9E9D31
analogous
#31689E #31329E #67319E
triadic
#31329E #9E3132 #329E31
tetradic
#31329E #9E3168 #9E9D31 #319E67
square
#31329E #9E3168 #9E9D31 #319E67
split-complementary
#31329E #9E6731 #689E31
monochromatic
#141441 #23236F #31329E #4648C6 #7576D4
Accessibility & contrast
On white
10.09
#31329E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#31329E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31329E
10.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31329E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31329E | 1.00 | 10.09 | 2.08 | 10.09 |
| #FFFFFF | 10.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #31329e; /* rgb */ color: rgb(49, 50, 158); /* oklch */ color: oklch(39.3% 0.170 274.8);
Tailwind
colors: {
custom: {
50: '#786abc',
500: '#31329e',
950: '#000000',
},
}SCSS
$custom: #31329e; $custom-light: #786abc; $custom-dark: #000000;
JSON
{
"hex": "#31329e",
"rgb": {
"r": 49,
"g": 50,
"b": 158
},
"hsl": {
"h": 239.45,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.39265,
"c": 0.16998,
"h": 274.8
},
"luminance": 0.05403
}Semantic roles & 50–950 ramp
primary
#31329E
secondary
#BCBC6E
accent
#DB4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81