#313894#313894
#313894 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.149 H 274.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).
Color values
| HEX | #313894 |
|---|---|
| RGB | rgb(49, 56, 148) |
| HSL | hsl(236, 50%, 39%) |
| HSV | hsv(236, 67%, 58%) |
| CMYK | cmyk(66.9%, 62.2%, 0%, 42%) |
| CIE-LAB | lab(28.43, 27.84, -51.59) |
| CIE-LCH | lch(28.43, 58.62, 298.35°) |
| OKLab | oklab(39.42% 0.0104 -0.1486) |
| OKLCH | oklch(39.42% 0.149 274) |
| XYZ | xyz(8.0243, 5.6187, 28.6729) |
| Luminance | 0.0562 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.57
Blueberry
#464196
ΔE00 3.82
Darkslateblue
#483D8B
ΔE00 4.54
Ocean Blue
#4F42B5
ΔE00 6.80
Cobalt
#0047AB
ΔE00 7.21
Blue Blue
#2242C7
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313894 #948D31
analogous
#316994 #313894 #5B3194
triadic
#313894 #943138 #389431
tetradic
#313894 #943169 #948D31 #31945B
square
#313894 #943169 #948D31 #31945B
split-complementary
#313894 #945B31 #699431
monochromatic
#131538 #222766 #313894 #424BC0 #7077D0
Accessibility & contrast
On white
9.89
#313894 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#313894 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313894
9.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313894 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313894 | 1.00 | 9.89 | 2.12 | 9.89 |
| #FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313894; /* rgb */ color: rgb(49, 56, 148); /* oklch */ color: oklch(39.4% 0.149 274.0);
Tailwind
colors: {
custom: {
50: '#756eb4',
500: '#313894',
950: '#000000',
},
}SCSS
$custom: #313894; $custom-light: #756eb4; $custom-dark: #000000;
JSON
{
"hex": "#313894",
"rgb": {
"r": 49,
"g": 56,
"b": 148
},
"hsl": {
"h": 235.758,
"s": 50.254,
"l": 38.627
},
"oklch": {
"l": 0.39415,
"c": 0.14901,
"h": 274
},
"luminance": 0.05619
}Semantic roles & 50–950 ramp
primary
#313894
secondary
#B7B269
accent
#D04EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80