#313795#313795
#313795 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.152 H 274.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #313795 |
|---|---|
| RGB | rgb(49, 55, 149) |
| HSL | hsl(236, 51%, 39%) |
| HSV | hsv(236, 67%, 58%) |
| CMYK | cmyk(67.1%, 63.1%, 0%, 41.6%) |
| CIE-LAB | lab(28.26, 28.86, -52.48) |
| CIE-LCH | lch(28.26, 59.89, 298.80°) |
| OKLab | oklab(39.32% 0.0112 -0.1513) |
| OKLCH | oklch(39.32% 0.152 274.2) |
| XYZ | xyz(8.0558, 5.5546, 29.0755) |
| Luminance | 0.0556 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.43
Blueberry
#464196
ΔE00 3.97
Darkslateblue
#483D8B
ΔE00 4.65
Ocean Blue
#4F42B5
ΔE00 6.73
Cobalt
#0047AB
ΔE00 7.42
Blue Blue
#2242C7
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313795 #958F31
analogous
#316995 #313795 #5D3195
triadic
#313795 #953137 #379531
tetradic
#313795 #953169 #958F31 #31955D
square
#313795 #953169 #958F31 #31955D
split-complementary
#313795 #955D31 #699531
monochromatic
#131539 #222667 #313795 #424AC1 #7076D0
Accessibility & contrast
On white
9.95
#313795 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#313795 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313795
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313795 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313795 | 1.00 | 9.95 | 2.11 | 9.95 |
| #FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313795; /* rgb */ color: rgb(49, 55, 149); /* oklch */ color: oklch(39.3% 0.152 274.2);
Tailwind
colors: {
custom: {
50: '#766eb5',
500: '#313795',
950: '#000000',
},
}SCSS
$custom: #313795; $custom-light: #766eb5; $custom-dark: #000000;
JSON
{
"hex": "#313795",
"rgb": {
"r": 49,
"g": 55,
"b": 149
},
"hsl": {
"h": 236.4,
"s": 50.505,
"l": 38.824
},
"oklch": {
"l": 0.39317,
"c": 0.15168,
"h": 274.2
},
"luminance": 0.05555
}Semantic roles & 50–950 ramp
primary
#313795
secondary
#B8B36A
accent
#D24EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80