#31379B#31379B
#31379B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.160 H 273.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).
Color values
| HEX | #31379B |
|---|---|
| RGB | rgb(49, 55, 155) |
| HSL | hsl(237, 52%, 40%) |
| HSV | hsv(237, 68%, 61%) |
| CMYK | cmyk(68.4%, 64.5%, 0%, 39.2%) |
| CIE-LAB | lab(28.78, 31.01, -55.30) |
| CIE-LCH | lch(28.78, 63.41, 299.28°) |
| OKLab | oklab(39.86% 0.0109 -0.1596) |
| OKLCH | oklch(39.86% 0.16 273.9) |
| XYZ | xyz(8.5472, 5.7511, 31.6636) |
| Luminance | 0.0575 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.65
Blueberry
#464196
ΔE00 4.13
Darkslateblue
#483D8B
ΔE00 5.09
Ocean Blue
#4F42B5
ΔE00 6.11
Blue Blue
#2242C7
ΔE00 6.65
Cobalt
#0047AB
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31379B #9B9531
analogous
#316C9B #31379B #60319B
triadic
#31379B #9B3137 #379B31
tetradic
#31379B #9B316C #9B9531 #319B60
square
#31379B #9B316C #9B9531 #319B60
split-complementary
#31379B #9B6031 #6C9B31
monochromatic
#14163E #22266D #31379B #454CC4 #7379D3
Accessibility & contrast
On white
9.77
#31379B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#31379B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31379B
9.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31379B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31379B | 1.00 | 9.77 | 2.15 | 9.77 |
| #FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#005164
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #31379b; /* rgb */ color: rgb(49, 55, 155); /* oklch */ color: oklch(39.9% 0.160 273.9);
Tailwind
colors: {
custom: {
50: '#776eb9',
500: '#31379b',
950: '#000000',
},
}SCSS
$custom: #31379b; $custom-light: #776eb9; $custom-dark: #000000;
JSON
{
"hex": "#31379b",
"rgb": {
"r": 49,
"g": 55,
"b": 155
},
"hsl": {
"h": 236.604,
"s": 51.961,
"l": 40
},
"oklch": {
"l": 0.39856,
"c": 0.15993,
"h": 273.9
},
"luminance": 0.05752
}Semantic roles & 50–950 ramp
primary
#31379B
secondary
#BBB66D
accent
#D34CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81