#31349E#31349E
#31349E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.168 H 274.4°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #31349E |
|---|---|
| RGB | rgb(49, 52, 158) |
| HSL | hsl(238, 53%, 41%) |
| HSV | hsv(238, 69%, 62%) |
| CMYK | cmyk(69%, 67.1%, 0%, 38%) |
| CIE-LAB | lab(28.32, 34.00, -57.88) |
| CIE-LCH | lch(28.32, 67.12, 300.43°) |
| OKLab | oklab(39.61% 0.0129 -0.1671) |
| OKLCH | oklch(39.61% 0.168 274.4) |
| XYZ | xyz(8.6641, 5.5768, 32.9610) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.65
Blueberry
#464196
ΔE00 4.82
Darkslateblue
#483D8B
ΔE00 5.61
Ocean Blue
#4F42B5
ΔE00 6.11
Blue Blue
#2242C7
ΔE00 6.73
Indigo Blue
#3A18B1
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31349E #9E9B31
analogous
#316A9E #31349E #65319E
triadic
#31349E #9E3134 #349E31
tetradic
#31349E #9E316A #9E9B31 #319E65
square
#31349E #9E316A #9E9B31 #319E65
split-complementary
#31349E #9E6531 #6A9E31
monochromatic
#141541 #23256F #31349E #464AC6 #7578D4
Accessibility & contrast
On white
9.93
#31349E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#31349E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31349E
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31349E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31349E | 1.00 | 9.93 | 2.12 | 9.93 |
| #FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #31349e; /* rgb */ color: rgb(49, 52, 158); /* oklch */ color: oklch(39.6% 0.168 274.4);
Tailwind
colors: {
custom: {
50: '#786cbc',
500: '#31349e',
950: '#000000',
},
}SCSS
$custom: #31349e; $custom-light: #786cbc; $custom-dark: #000000;
JSON
{
"hex": "#31349e",
"rgb": {
"r": 49,
"g": 52,
"b": 158
},
"hsl": {
"h": 238.349,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.39605,
"c": 0.16762,
"h": 274.4
},
"luminance": 0.05578
}Semantic roles & 50–950 ramp
primary
#31349E
secondary
#BCBA6E
accent
#D84CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81