#31389F#31389F
#31389F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.164 H 273.4°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #31389F |
|---|---|
| RGB | rgb(49, 56, 159) |
| HSL | hsl(236, 53%, 41%) |
| HSV | hsv(236, 69%, 62%) |
| CMYK | cmyk(69.2%, 64.8%, 0%, 37.6%) |
| CIE-LAB | lab(29.37, 31.80, -56.76) |
| CIE-LCH | lch(29.37, 65.06, 299.26°) |
| OKLab | oklab(40.4% 0.0098 -0.1638) |
| OKLCH | oklch(40.4% 0.164 273.4) |
| XYZ | xyz(8.9367, 5.9837, 33.4782) |
| Luminance | 0.0599 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.16
Blueberry
#464196
ΔE00 4.18
Darkslateblue
#483D8B
ΔE00 5.38
Ocean Blue
#4F42B5
ΔE00 5.66
Blue Blue
#2242C7
ΔE00 6.03
Cobalt
#0047AB
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31389F #9F9831
analogous
#316F9F #31389F #61319F
triadic
#31389F #9F3138 #389F31
tetradic
#31389F #9F316F #9F9831 #319F61
square
#31389F #9F316F #9F9831 #319F61
split-complementary
#31389F #9F6131 #6F9F31
monochromatic
#141741 #232870 #31389F #474FC6 #767CD5
Accessibility & contrast
On white
9.56
#31389F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#31389F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31389F
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31389F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31389F | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #31389f; /* rgb */ color: rgb(49, 56, 159); /* oklch */ color: oklch(40.4% 0.164 273.4);
Tailwind
colors: {
custom: {
50: '#786fbc',
500: '#31389f',
950: '#000000',
},
}SCSS
$custom: #31389f; $custom-light: #786fbc; $custom-dark: #000000;
JSON
{
"hex": "#31389f",
"rgb": {
"r": 49,
"g": 56,
"b": 159
},
"hsl": {
"h": 236.182,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.404,
"c": 0.16413,
"h": 273.4
},
"luminance": 0.05985
}Semantic roles & 50–950 ramp
primary
#31389F
secondary
#BDB86F
accent
#D34CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81