#313797#313797
#313797 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.154 H 274.1°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).
Color values
| HEX | #313797 |
|---|---|
| RGB | rgb(49, 55, 151) |
| HSL | hsl(236, 51%, 39%) |
| HSV | hsv(236, 68%, 59%) |
| CMYK | cmyk(67.5%, 63.6%, 0%, 40.8%) |
| CIE-LAB | lab(28.43, 29.58, -53.43) |
| CIE-LCH | lch(28.43, 61.07, 298.97°) |
| OKLab | oklab(39.5% 0.0111 -0.154) |
| OKLCH | oklch(39.5% 0.154 274.1) |
| XYZ | xyz(8.2169, 5.6190, 29.9237) |
| Luminance | 0.0562 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.16
Blueberry
#464196
ΔE00 4.01
Darkslateblue
#483D8B
ΔE00 4.78
Ocean Blue
#4F42B5
ΔE00 6.51
Blue Blue
#2242C7
ΔE00 7.16
Cobalt
#0047AB
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313797 #979131
analogous
#316A97 #313797 #5E3197
triadic
#313797 #973137 #379731
tetradic
#313797 #97316A #979131 #31975E
square
#313797 #97316A #979131 #31975E
split-complementary
#313797 #975E31 #6A9731
monochromatic
#13153B #222669 #313797 #434BC2 #7177D1
Accessibility & contrast
On white
9.89
#313797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#313797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313797
9.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313797 | 1.00 | 9.89 | 2.12 | 9.89 |
| #FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313797; /* rgb */ color: rgb(49, 55, 151); /* oklch */ color: oklch(39.5% 0.154 274.1);
Tailwind
colors: {
custom: {
50: '#766eb6',
500: '#313797',
950: '#000000',
},
}SCSS
$custom: #313797; $custom-light: #766eb6; $custom-dark: #000000;
JSON
{
"hex": "#313797",
"rgb": {
"r": 49,
"g": 55,
"b": 151
},
"hsl": {
"h": 236.471,
"s": 51,
"l": 39.216
},
"oklch": {
"l": 0.39495,
"c": 0.15445,
"h": 274.1
},
"luminance": 0.0562
}Semantic roles & 50–950 ramp
primary
#313797
secondary
#B9B46B
accent
#D24DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80