#313796#313796
#313796 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.153 H 274.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #313796 |
|---|---|
| RGB | rgb(49, 55, 150) |
| HSL | hsl(236, 51%, 39%) |
| HSV | hsv(236, 67%, 59%) |
| CMYK | cmyk(67.3%, 63.3%, 0%, 41.2%) |
| CIE-LAB | lab(28.34, 29.22, -52.96) |
| CIE-LCH | lch(28.34, 60.48, 298.89°) |
| OKLab | oklab(39.41% 0.0112 -0.1527) |
| OKLCH | oklch(39.41% 0.153 274.2) |
| XYZ | xyz(8.1360, 5.5866, 29.4978) |
| Luminance | 0.0559 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.29
Blueberry
#464196
ΔE00 3.99
Darkslateblue
#483D8B
ΔE00 4.71
Ocean Blue
#4F42B5
ΔE00 6.62
Blue Blue
#2242C7
ΔE00 7.29
Cobalt
#0047AB
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313796 #969031
analogous
#316A96 #313796 #5E3196
triadic
#313796 #963137 #379631
tetradic
#313796 #96316A #969031 #31965E
square
#313796 #96316A #969031 #31965E
split-complementary
#313796 #965E31 #6A9631
monochromatic
#13153A #222668 #313796 #434AC1 #7177D1
Accessibility & contrast
On white
9.92
#313796 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#313796 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313796
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313796 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313796 | 1.00 | 9.92 | 2.12 | 9.92 |
| #FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313796; /* rgb */ color: rgb(49, 55, 150); /* oklch */ color: oklch(39.4% 0.153 274.2);
Tailwind
colors: {
custom: {
50: '#766eb6',
500: '#313796',
950: '#000000',
},
}SCSS
$custom: #313796; $custom-light: #766eb6; $custom-dark: #000000;
JSON
{
"hex": "#313796",
"rgb": {
"r": 49,
"g": 55,
"b": 150
},
"hsl": {
"h": 236.436,
"s": 50.754,
"l": 39.02
},
"oklch": {
"l": 0.39406,
"c": 0.15307,
"h": 274.2
},
"luminance": 0.05587
}Semantic roles & 50–950 ramp
primary
#313796
secondary
#B8B46A
accent
#D24EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80