#313992#313992
#313992 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.145 H 273.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #313992 |
|---|---|
| RGB | rgb(49, 57, 146) |
| HSL | hsl(235, 50%, 38%) |
| HSV | hsv(235, 66%, 57%) |
| CMYK | cmyk(66.4%, 61%, 0%, 42.7%) |
| CIE-LAB | lab(28.52, 26.45, -50.21) |
| CIE-LCH | lch(28.52, 56.75, 297.78°) |
| OKLab | oklab(39.43% 0.0096 -0.1446) |
| OKLCH | oklch(39.43% 0.145 273.8) |
| XYZ | xyz(7.9163, 5.6539, 27.8627) |
| Luminance | 0.0566 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.71
Sapphire (survey)
#2138AB
ΔE00 3.89
Darkslateblue
#483D8B
ΔE00 4.42
Ocean Blue
#4F42B5
ΔE00 7.01
Cobalt
#0047AB
ΔE00 7.05
Cobalt (survey)
#1E488F
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313992 #928A31
analogous
#316992 #313992 #593192
triadic
#313992 #923139 #399231
tetradic
#313992 #923169 #928A31 #319259
square
#313992 #923169 #928A31 #319259
split-complementary
#313992 #925931 #699231
monochromatic
#121536 #222764 #313992 #414BBF #6F77CF
Accessibility & contrast
On white
9.85
#313992 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#313992 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313992
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313992 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313992 | 1.00 | 9.85 | 2.13 | 9.85 |
| #FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004895
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313992; /* rgb */ color: rgb(49, 57, 146); /* oklch */ color: oklch(39.4% 0.145 273.8);
Tailwind
colors: {
custom: {
50: '#756fb3',
500: '#313992',
950: '#000000',
},
}SCSS
$custom: #313992; $custom-light: #756fb3; $custom-dark: #000000;
JSON
{
"hex": "#313992",
"rgb": {
"r": 49,
"g": 57,
"b": 146
},
"hsl": {
"h": 235.052,
"s": 49.744,
"l": 38.235
},
"oklch": {
"l": 0.39432,
"c": 0.14491,
"h": 273.8
},
"luminance": 0.05655
}Semantic roles & 50–950 ramp
primary
#313992
secondary
#B6B069
accent
#CE4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80