#313390#313390
#313390 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.150 H 275.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).
Color values
| HEX | #313390 |
|---|---|
| RGB | rgb(49, 51, 144) |
| HSL | hsl(239, 49%, 38%) |
| HSV | hsv(239, 66%, 56%) |
| CMYK | cmyk(66%, 64.6%, 0%, 43.5%) |
| CIE-LAB | lab(26.83, 29.68, -51.74) |
| CIE-LCH | lch(26.83, 59.65, 299.84°) |
| OKLab | oklab(38.13% 0.0149 -0.1491) |
| OKLCH | oklch(38.13% 0.15 275.7) |
| XYZ | xyz(7.4828, 5.0336, 26.9574) |
| Luminance | 0.0503 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.35
Blueberry
#464196
ΔE00 4.69
Darkslateblue
#483D8B
ΔE00 4.73
Royal
#0C1793
ΔE00 7.27
Ocean Blue
#4F42B5
ΔE00 7.56
Indigo Blue
#3A18B1
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313390 #908E31
analogous
#316290 #313390 #5E3190
triadic
#313390 #903133 #339031
tetradic
#313390 #903162 #908E31 #31905E
square
#313390 #903162 #908E31 #31905E
split-complementary
#313390 #905E31 #629031
monochromatic
#121335 #212362 #313390 #4143BE #6E70CE
Accessibility & contrast
On white
10.46
#313390 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#313390 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313390
10.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313390 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313390 | 1.00 | 10.46 | 2.01 | 10.46 |
| #FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#003B8E
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #313390; /* rgb */ color: rgb(49, 51, 144); /* oklch */ color: oklch(38.1% 0.150 275.7);
Tailwind
colors: {
custom: {
50: '#756bb1',
500: '#313390',
950: '#000000',
},
}SCSS
$custom: #313390; $custom-light: #756bb1; $custom-dark: #000000;
JSON
{
"hex": "#313390",
"rgb": {
"r": 49,
"g": 51,
"b": 144
},
"hsl": {
"h": 238.737,
"s": 49.223,
"l": 37.843
},
"oklch": {
"l": 0.38134,
"c": 0.14986,
"h": 275.7
},
"luminance": 0.05034
}Semantic roles & 50–950 ramp
primary
#313390
secondary
#B5B468
accent
#D64FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80