#313290#313290
#313290 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.151 H 276.0°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).
Color values
| HEX | #313290 |
|---|---|
| RGB | rgb(49, 50, 144) |
| HSL | hsl(239, 49%, 38%) |
| HSV | hsv(239, 66%, 56%) |
| CMYK | cmyk(66%, 65.3%, 0%, 43.5%) |
| CIE-LAB | lab(26.58, 30.33, -52.14) |
| CIE-LCH | lch(26.58, 60.32, 300.19°) |
| OKLab | oklab(37.95% 0.0158 -0.1503) |
| OKLCH | oklch(37.95% 0.151 276) |
| XYZ | xyz(7.4396, 4.9472, 26.9430) |
| Luminance | 0.0495 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.45
Darkslateblue
#483D8B
ΔE00 4.87
Blueberry
#464196
ΔE00 4.89
Royal
#0C1793
ΔE00 6.99
Ocean Blue
#4F42B5
ΔE00 7.65
Indigo Blue
#3A18B1
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313290 #908F31
analogous
#316290 #313290 #5F3190
triadic
#313290 #903132 #329031
tetradic
#313290 #903162 #908F31 #31905F
square
#313290 #903162 #908F31 #31905F
split-complementary
#313290 #905F31 #629031
monochromatic
#121235 #212262 #313290 #4142BE #6E6FCE
Accessibility & contrast
On white
10.55
#313290 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#313290 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313290
10.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313290 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313290 | 1.00 | 10.55 | 1.99 | 10.55 |
| #FFFFFF | 10.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004393
Deuteranopia (green-blind)
#003B8E
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #313290; /* rgb */ color: rgb(49, 50, 144); /* oklch */ color: oklch(38.0% 0.151 276.0);
Tailwind
colors: {
custom: {
50: '#756ab1',
500: '#313290',
950: '#000000',
},
}SCSS
$custom: #313290; $custom-light: #756ab1; $custom-dark: #000000;
JSON
{
"hex": "#313290",
"rgb": {
"r": 49,
"g": 50,
"b": 144
},
"hsl": {
"h": 239.368,
"s": 49.223,
"l": 37.843
},
"oklch": {
"l": 0.37954,
"c": 0.15113,
"h": 276
},
"luminance": 0.04948
}Semantic roles & 50–950 ramp
primary
#313290
secondary
#B5B468
accent
#D74FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80