#313996#313996
#313996 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.151 H 273.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #313996 |
|---|---|
| RGB | rgb(49, 57, 150) |
| HSL | hsl(235, 51%, 39%) |
| HSV | hsv(235, 67%, 59%) |
| CMYK | cmyk(67.3%, 62%, 0%, 41.2%) |
| CIE-LAB | lab(28.85, 27.90, -52.13) |
| CIE-LCH | lch(28.85, 59.13, 298.16°) |
| OKLab | oklab(39.78% 0.0095 -0.1502) |
| OKLCH | oklch(39.78% 0.151 273.6) |
| XYZ | xyz(8.2329, 5.7805, 29.5301) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.30
Blueberry
#464196
ΔE00 3.71
Darkslateblue
#483D8B
ΔE00 4.64
Ocean Blue
#4F42B5
ΔE00 6.54
Cobalt
#0047AB
ΔE00 6.87
Blue Blue
#2242C7
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313996 #968E31
analogous
#316C96 #313996 #5C3196
triadic
#313996 #963139 #399631
tetradic
#313996 #96316C #968E31 #31965C
square
#313996 #96316C #968E31 #31965C
split-complementary
#313996 #965C31 #6C9631
monochromatic
#13163A #222768 #313996 #434DC1 #7178D1
Accessibility & contrast
On white
9.74
#313996 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#313996 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313996
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313996 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313996 | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313996; /* rgb */ color: rgb(49, 57, 150); /* oklch */ color: oklch(39.8% 0.151 273.6);
Tailwind
colors: {
custom: {
50: '#766fb6',
500: '#313996',
950: '#000000',
},
}SCSS
$custom: #313996; $custom-light: #766fb6; $custom-dark: #000000;
JSON
{
"hex": "#313996",
"rgb": {
"r": 49,
"g": 57,
"b": 150
},
"hsl": {
"h": 235.248,
"s": 50.754,
"l": 39.02
},
"oklch": {
"l": 0.39779,
"c": 0.15052,
"h": 273.6
},
"luminance": 0.05781
}Semantic roles & 50–950 ramp
primary
#313996
secondary
#B8B26A
accent
#CF4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80