#313492#313492
#313492 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.151 H 275.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).
Color values
| HEX | #313492 |
|---|---|
| RGB | rgb(49, 52, 146) |
| HSL | hsl(238, 50%, 38%) |
| HSV | hsv(238, 66%, 57%) |
| CMYK | cmyk(66.4%, 64.4%, 0%, 42.7%) |
| CIE-LAB | lab(27.25, 29.74, -52.28) |
| CIE-LCH | lch(27.25, 60.15, 299.63°) |
| OKLab | oklab(38.5% 0.0139 -0.1507) |
| OKLCH | oklch(38.5% 0.151 275.3) |
| XYZ | xyz(7.6812, 5.1836, 27.7843) |
| Luminance | 0.0518 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.00
Blueberry
#464196
ΔE00 4.48
Darkslateblue
#483D8B
ΔE00 4.72
Ocean Blue
#4F42B5
ΔE00 7.26
Royal
#0C1793
ΔE00 7.47
Indigo Blue
#3A18B1
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313492 #928F31
analogous
#316492 #313492 #5E3192
triadic
#313492 #923134 #349231
tetradic
#313492 #923164 #928F31 #31925E
square
#313492 #923164 #928F31 #31925E
split-complementary
#313492 #925E31 #649231
monochromatic
#121336 #222464 #313492 #4145BF #6F72CF
Accessibility & contrast
On white
10.31
#313492 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#313492 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313492
10.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313492 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313492 | 1.00 | 10.31 | 2.04 | 10.31 |
| #FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004595
Deuteranopia (green-blind)
#003C90
Tritanopia (blue-blind)
#004C5E
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #313492; /* rgb */ color: rgb(49, 52, 146); /* oklch */ color: oklch(38.5% 0.151 275.3);
Tailwind
colors: {
custom: {
50: '#756bb3',
500: '#313492',
950: '#000000',
},
}SCSS
$custom: #313492; $custom-light: #756bb3; $custom-dark: #000000;
JSON
{
"hex": "#313492",
"rgb": {
"r": 49,
"g": 52,
"b": 146
},
"hsl": {
"h": 238.144,
"s": 49.744,
"l": 38.235
},
"oklch": {
"l": 0.38496,
"c": 0.15136,
"h": 275.3
},
"luminance": 0.05184
}Semantic roles & 50–950 ramp
primary
#313492
secondary
#B6B469
accent
#D54FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80