#31389E#31389E
#31389E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.163 H 273.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).
Color values
| HEX | #31389E |
|---|---|
| RGB | rgb(49, 56, 158) |
| HSL | hsl(236, 53%, 41%) |
| HSV | hsv(236, 69%, 62%) |
| CMYK | cmyk(69%, 64.6%, 0%, 38%) |
| CIE-LAB | lab(29.28, 31.44, -56.30) |
| CIE-LCH | lch(29.28, 64.48, 299.18°) |
| OKLab | oklab(40.31% 0.0099 -0.1625) |
| OKLCH | oklch(40.31% 0.163 273.5) |
| XYZ | xyz(8.8503, 5.9491, 33.0230) |
| Luminance | 0.0595 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.27
Blueberry
#464196
ΔE00 4.12
Darkslateblue
#483D8B
ΔE00 5.29
Ocean Blue
#4F42B5
ΔE00 5.75
Blue Blue
#2242C7
ΔE00 6.15
Cobalt
#0047AB
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31389E #9E9731
analogous
#316E9E #31389E #60319E
triadic
#31389E #9E3138 #389E31
tetradic
#31389E #9E316E #9E9731 #319E60
square
#31389E #9E316E #9E9731 #319E60
split-complementary
#31389E #9E6031 #6E9E31
monochromatic
#141741 #23276F #31389E #464FC6 #757BD4
Accessibility & contrast
On white
9.59
#31389E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#31389E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31389E
9.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31389E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31389E | 1.00 | 9.59 | 2.19 | 9.59 |
| #FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #31389e; /* rgb */ color: rgb(49, 56, 158); /* oklch */ color: oklch(40.3% 0.163 273.5);
Tailwind
colors: {
custom: {
50: '#786ebc',
500: '#31389e',
950: '#000000',
},
}SCSS
$custom: #31389e; $custom-light: #786ebc; $custom-dark: #000000;
JSON
{
"hex": "#31389e",
"rgb": {
"r": 49,
"g": 56,
"b": 158
},
"hsl": {
"h": 236.147,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.40309,
"c": 0.16277,
"h": 273.5
},
"luminance": 0.0595
}Semantic roles & 50–950 ramp
primary
#31389E
secondary
#BCB76E
accent
#D34CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81