#31376E#31376E
#31376E is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.094 H 276.0°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #31376E |
|---|---|
| RGB | rgb(49, 55, 110) |
| HSL | hsl(234, 38%, 31%) |
| HSV | hsv(234, 55%, 43%) |
| CMYK | cmyk(55.5%, 50%, 0%, 56.9%) |
| CIE-LAB | lab(25.29, 14.78, -32.86) |
| CIE-LCH | lch(25.29, 36.03, 294.22°) |
| OKLab | oklab(36.16% 0.0098 -0.0936) |
| OKLCH | oklch(36.16% 0.094 276) |
| XYZ | xyz(5.4464, 4.5108, 15.3325) |
| Luminance | 0.0451 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.39
Marine
#042E60
ΔE00 6.66
Navy Blue
#1B2A4A
ΔE00 7.53
Blueberry
#464196
ΔE00 7.53
Marine Blue
#01386A
ΔE00 7.68
Darkish Blue
#014182
ΔE00 8.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31376E #6E6831
analogous
#31556E #31376E #49316E
triadic
#31376E #6E3137 #376E31
tetradic
#31376E #6E3155 #6E6831 #316E49
square
#31376E #6E3155 #6E6831 #316E49
split-complementary
#31376E #6E4931 #556E31
monochromatic
#0B0D19 #1E2244 #31376E #444C98 #6169B9
Accessibility & contrast
On white
11.04
#31376E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#31376E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31376E
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31376E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31376E | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E3F70
Deuteranopia (green-blind)
#173A6D
Tritanopia (blue-blind)
#15434D
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #31376e; /* rgb */ color: rgb(49, 55, 110); /* oklch */ color: oklch(36.2% 0.094 276.0);
Tailwind
colors: {
custom: {
50: '#6e6d98',
500: '#31376e',
950: '#000000',
},
}SCSS
$custom: #31376e; $custom-light: #6e6d98; $custom-dark: #000000;
JSON
{
"hex": "#31376e",
"rgb": {
"r": 49,
"g": 55,
"b": 110
},
"hsl": {
"h": 234.098,
"s": 38.365,
"l": 31.176
},
"oklch": {
"l": 0.36163,
"c": 0.09408,
"h": 276
},
"luminance": 0.04511
}Semantic roles & 50–950 ramp
primary
#31376E
secondary
#9F985C
accent
#C359CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E