#313895#313895
#313895 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.150 H 273.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).
Color values
| HEX | #313895 |
|---|---|
| RGB | rgb(49, 56, 149) |
| HSL | hsl(236, 51%, 39%) |
| HSV | hsv(236, 67%, 58%) |
| CMYK | cmyk(67.1%, 62.4%, 0%, 41.6%) |
| CIE-LAB | lab(28.51, 28.20, -52.07) |
| CIE-LCH | lch(28.51, 59.21, 298.44°) |
| OKLab | oklab(39.5% 0.0104 -0.15) |
| OKLCH | oklch(39.5% 0.15 273.9) |
| XYZ | xyz(8.1038, 5.6505, 29.0915) |
| Luminance | 0.0565 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.42
Blueberry
#464196
ΔE00 3.83
Darkslateblue
#483D8B
ΔE00 4.60
Ocean Blue
#4F42B5
ΔE00 6.68
Cobalt
#0047AB
ΔE00 7.16
Blue Blue
#2242C7
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313895 #958E31
analogous
#316A95 #313895 #5C3195
triadic
#313895 #953138 #389531
tetradic
#313895 #95316A #958E31 #31955C
square
#313895 #95316A #958E31 #31955C
split-complementary
#313895 #955C31 #6A9531
monochromatic
#131539 #222767 #313895 #424BC1 #7077D0
Accessibility & contrast
On white
9.86
#313895 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#313895 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313895
9.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313895 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313895 | 1.00 | 9.86 | 2.13 | 9.86 |
| #FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313895; /* rgb */ color: rgb(49, 56, 149); /* oklch */ color: oklch(39.5% 0.150 273.9);
Tailwind
colors: {
custom: {
50: '#766eb5',
500: '#313895',
950: '#000000',
},
}SCSS
$custom: #313895; $custom-light: #766eb5; $custom-dark: #000000;
JSON
{
"hex": "#313895",
"rgb": {
"r": 49,
"g": 56,
"b": 149
},
"hsl": {
"h": 235.8,
"s": 50.505,
"l": 38.824
},
"oklch": {
"l": 0.39503,
"c": 0.15041,
"h": 273.9
},
"luminance": 0.05651
}Semantic roles & 50–950 ramp
primary
#313895
secondary
#B8B26A
accent
#D04EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80