#313794#313794
#313794 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.150 H 274.3°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #313794 |
|---|---|
| RGB | rgb(49, 55, 148) |
| HSL | hsl(236, 50%, 39%) |
| HSV | hsv(236, 67%, 58%) |
| CMYK | cmyk(66.9%, 62.8%, 0%, 42%) |
| CIE-LAB | lab(28.18, 28.50, -52.01) |
| CIE-LCH | lch(28.18, 59.30, 298.72°) |
| OKLab | oklab(39.23% 0.0113 -0.1499) |
| OKLCH | oklch(39.23% 0.15 274.3) |
| XYZ | xyz(7.9763, 5.5228, 28.6569) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.57
Blueberry
#464196
ΔE00 3.96
Darkslateblue
#483D8B
ΔE00 4.58
Ocean Blue
#4F42B5
ΔE00 6.84
Cobalt
#0047AB
ΔE00 7.46
Blue Blue
#2242C7
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313794 #948E31
analogous
#316894 #313794 #5C3194
triadic
#313794 #943137 #379431
tetradic
#313794 #943168 #948E31 #31945C
square
#313794 #943168 #948E31 #31945C
split-complementary
#313794 #945C31 #689431
monochromatic
#131538 #222666 #313794 #4249C0 #7076D0
Accessibility & contrast
On white
9.98
#313794 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#313794 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313794
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313794 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313794 | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#003E92
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #313794; /* rgb */ color: rgb(49, 55, 148); /* oklch */ color: oklch(39.2% 0.150 274.3);
Tailwind
colors: {
custom: {
50: '#766eb4',
500: '#313794',
950: '#000000',
},
}SCSS
$custom: #313794; $custom-light: #766eb4; $custom-dark: #000000;
JSON
{
"hex": "#313794",
"rgb": {
"r": 49,
"g": 55,
"b": 148
},
"hsl": {
"h": 236.364,
"s": 50.254,
"l": 38.627
},
"oklch": {
"l": 0.39228,
"c": 0.1503,
"h": 274.3
},
"luminance": 0.05523
}Semantic roles & 50–950 ramp
primary
#313794
secondary
#B7B369
accent
#D14EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80