#31379F#31379F
#31379F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.165 H 273.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #31379F |
|---|---|
| RGB | rgb(49, 55, 159) |
| HSL | hsl(237, 53%, 41%) |
| HSV | hsv(237, 69%, 62%) |
| CMYK | cmyk(69.2%, 65.4%, 0%, 37.6%) |
| CIE-LAB | lab(29.13, 32.44, -57.16) |
| CIE-LCH | lch(29.13, 65.72, 299.57°) |
| OKLab | oklab(40.22% 0.0106 -0.165) |
| OKLCH | oklch(40.22% 0.165 273.7) |
| XYZ | xyz(8.8887, 5.8877, 33.4622) |
| Luminance | 0.0589 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.21
Blueberry
#464196
ΔE00 4.33
Darkslateblue
#483D8B
ΔE00 5.44
Ocean Blue
#4F42B5
ΔE00 5.73
Blue Blue
#2242C7
ΔE00 6.16
Cobalt
#0047AB
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31379F #9F9931
analogous
#316E9F #31379F #62319F
triadic
#31379F #9F3137 #379F31
tetradic
#31379F #9F316E #9F9931 #319F62
square
#31379F #9F316E #9F9931 #319F62
split-complementary
#31379F #9F6231 #6E9F31
monochromatic
#141741 #232770 #31379F #474EC6 #767BD5
Accessibility & contrast
On white
9.64
#31379F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#31379F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31379F
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31379F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31379F | 1.00 | 9.64 | 2.18 | 9.64 |
| #FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #31379f; /* rgb */ color: rgb(49, 55, 159); /* oklch */ color: oklch(40.2% 0.165 273.7);
Tailwind
colors: {
custom: {
50: '#786ebc',
500: '#31379f',
950: '#000000',
},
}SCSS
$custom: #31379f; $custom-light: #786ebc; $custom-dark: #000000;
JSON
{
"hex": "#31379f",
"rgb": {
"r": 49,
"g": 55,
"b": 159
},
"hsl": {
"h": 236.727,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.40222,
"c": 0.16534,
"h": 273.7
},
"luminance": 0.05889
}Semantic roles & 50–950 ramp
primary
#31379F
secondary
#BDB96F
accent
#D44CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81