#31378E#31378E
#31378E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.142 H 274.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).
Color values
| HEX | #31378E |
|---|---|
| RGB | rgb(49, 55, 142) |
| HSL | hsl(236, 49%, 37%) |
| HSV | hsv(236, 65%, 56%) |
| CMYK | cmyk(65.5%, 61.3%, 0%, 44.3%) |
| CIE-LAB | lab(27.68, 26.33, -49.13) |
| CIE-LCH | lch(27.68, 55.74, 298.19°) |
| OKLab | oklab(38.7% 0.0114 -0.1414) |
| OKLCH | oklch(38.7% 0.142 274.6) |
| XYZ | xyz(7.5137, 5.3377, 26.2203) |
| Luminance | 0.0534 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.03
Darkslateblue
#483D8B
ΔE00 4.29
Sapphire (survey)
#2138AB
ΔE00 4.45
Ocean Blue
#4F42B5
ΔE00 7.55
Cobalt (survey)
#1E488F
ΔE00 7.60
Cobalt
#0047AB
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31378E #8E8831
analogous
#31668E #31378E #5A318E
triadic
#31378E #8E3137 #378E31
tetradic
#31378E #8E3166 #8E8831 #318E5A
square
#31378E #8E3166 #8E8831 #318E5A
split-complementary
#31378E #8E5A31 #668E31
monochromatic
#121433 #212561 #31378E #4149BB #6D73CD
Accessibility & contrast
On white
10.16
#31378E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#31378E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31378E
10.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31378E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31378E | 1.00 | 10.16 | 2.07 | 10.16 |
| #FFFFFF | 10.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#004C5D
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #31378e; /* rgb */ color: rgb(49, 55, 142); /* oklch */ color: oklch(38.7% 0.142 274.6);
Tailwind
colors: {
custom: {
50: '#746db0',
500: '#31378e',
950: '#000000',
},
}SCSS
$custom: #31378e; $custom-light: #746db0; $custom-dark: #000000;
JSON
{
"hex": "#31378e",
"rgb": {
"r": 49,
"g": 55,
"b": 142
},
"hsl": {
"h": 236.129,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.38704,
"c": 0.14188,
"h": 274.6
},
"luminance": 0.05338
}Semantic roles & 50–950 ramp
primary
#31378E
secondary
#B4AF67
accent
#CF50D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F