#31359E#31359E
#31359E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.166 H 274.2°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).
Color values
| HEX | #31359E |
|---|---|
| RGB | rgb(49, 53, 158) |
| HSL | hsl(238, 53%, 41%) |
| HSV | hsv(238, 69%, 62%) |
| CMYK | cmyk(69%, 66.5%, 0%, 38%) |
| CIE-LAB | lab(28.56, 33.36, -57.49) |
| CIE-LCH | lch(28.56, 66.47, 300.13°) |
| OKLab | oklab(39.78% 0.0122 -0.166) |
| OKLCH | oklch(39.78% 0.166 274.2) |
| XYZ | xyz(8.7092, 5.6670, 32.9760) |
| Luminance | 0.0567 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.51
Blueberry
#464196
ΔE00 4.63
Darkslateblue
#483D8B
ΔE00 5.51
Ocean Blue
#4F42B5
ΔE00 6.01
Blue Blue
#2242C7
ΔE00 6.57
Indigo Blue
#3A18B1
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31359E #9E9A31
analogous
#316B9E #31359E #63319E
triadic
#31359E #9E3135 #359E31
tetradic
#31359E #9E316B #9E9A31 #319E63
square
#31359E #9E316B #9E9A31 #319E63
split-complementary
#31359E #9E6331 #6B9E31
monochromatic
#141641 #23256F #31359E #464BC6 #7579D4
Accessibility & contrast
On white
9.84
#31359E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#31359E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31359E
9.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31359E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31359E | 1.00 | 9.84 | 2.13 | 9.84 |
| #FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.84 | 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: #31359e; /* rgb */ color: rgb(49, 53, 158); /* oklch */ color: oklch(39.8% 0.166 274.2);
Tailwind
colors: {
custom: {
50: '#786cbc',
500: '#31359e',
950: '#000000',
},
}SCSS
$custom: #31359e; $custom-light: #786cbc; $custom-dark: #000000;
JSON
{
"hex": "#31359e",
"rgb": {
"r": 49,
"g": 53,
"b": 158
},
"hsl": {
"h": 237.798,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.39778,
"c": 0.16642,
"h": 274.2
},
"luminance": 0.05668
}Semantic roles & 50–950 ramp
primary
#31359E
secondary
#BCB96E
accent
#D74CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81