#31359B#31359B
#31359B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.162 H 274.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).
Color values
| HEX | #31359B |
|---|---|
| RGB | rgb(49, 53, 155) |
| HSL | hsl(238, 52%, 40%) |
| HSV | hsv(238, 68%, 61%) |
| CMYK | cmyk(68.4%, 65.8%, 0%, 39.2%) |
| CIE-LAB | lab(28.29, 32.30, -56.10) |
| CIE-LCH | lch(28.29, 64.74, 299.93°) |
| OKLab | oklab(39.5% 0.0124 -0.1619) |
| OKLCH | oklch(39.5% 0.162 274.4) |
| XYZ | xyz(8.4542, 5.5650, 31.6326) |
| Luminance | 0.0557 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.81
Blueberry
#464196
ΔE00 4.49
Darkslateblue
#483D8B
ΔE00 5.25
Ocean Blue
#4F42B5
ΔE00 6.27
Blue Blue
#2242C7
ΔE00 6.92
Indigo Blue
#3A18B1
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31359B #9B9731
analogous
#316A9B #31359B #62319B
triadic
#31359B #9B3135 #359B31
tetradic
#31359B #9B316A #9B9731 #319B62
square
#31359B #9B316A #9B9731 #319B62
split-complementary
#31359B #9B6231 #6A9B31
monochromatic
#14153E #22256D #31359B #454AC4 #7377D3
Accessibility & contrast
On white
9.94
#31359B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#31359B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31359B
9.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31359B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31359B | 1.00 | 9.94 | 2.11 | 9.94 |
| #FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #31359b; /* rgb */ color: rgb(49, 53, 155); /* oklch */ color: oklch(39.5% 0.162 274.4);
Tailwind
colors: {
custom: {
50: '#776cb9',
500: '#31359b',
950: '#000000',
},
}SCSS
$custom: #31359b; $custom-light: #776cb9; $custom-dark: #000000;
JSON
{
"hex": "#31359b",
"rgb": {
"r": 49,
"g": 53,
"b": 155
},
"hsl": {
"h": 237.736,
"s": 51.961,
"l": 40
},
"oklch": {
"l": 0.39499,
"c": 0.16239,
"h": 274.4
},
"luminance": 0.05566
}Semantic roles & 50–950 ramp
primary
#31359B
secondary
#BBB86D
accent
#D64CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81