#313EAC#313EAC
#313EAC is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.174 H 271.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #313EAC |
|---|---|
| RGB | rgb(49, 62, 172) |
| HSL | hsl(234, 56%, 43%) |
| HSV | hsv(234, 72%, 67%) |
| CMYK | cmyk(71.5%, 64%, 0%, 32.5%) |
| CIE-LAB | lab(31.98, 32.60, -60.32) |
| CIE-LCH | lch(31.98, 68.57, 298.39°) |
| OKLab | oklab(42.66% 0.0047 -0.1742) |
| OKLCH | oklch(42.66% 0.174 271.5) |
| XYZ | xyz(10.4331, 7.0757, 39.8376) |
| Luminance | 0.0708 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.03
Blue Blue
#2242C7
ΔE00 3.75
Ocean Blue
#4F42B5
ΔE00 4.44
Blueberry
#464196
ΔE00 4.67
Cobalt
#0047AB
ΔE00 5.47
Blue With A Hint Of Purple
#533CC6
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313EAC #AC9F31
analogous
#317BAC #313EAC #6231AC
triadic
#313EAC #AC313E #3EAC31
tetradic
#313EAC #AC317B #AC9F31 #31AC62
square
#313EAC #AC317B #AC9F31 #31AC62
split-complementary
#313EAC #AC6231 #7BAC31
monochromatic
#161C4D #232D7C #313EAC #4E5BCC #7D87DA
Accessibility & contrast
On white
8.69
#313EAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#313EAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313EAC
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313EAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313EAC | 1.00 | 8.69 | 2.42 | 8.69 |
| #FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #313eac; /* rgb */ color: rgb(49, 62, 172); /* oklch */ color: oklch(42.7% 0.174 271.5);
Tailwind
colors: {
custom: {
50: '#7a73c6',
500: '#313eac',
950: '#000000',
},
}SCSS
$custom: #313eac; $custom-light: #7a73c6; $custom-dark: #000000;
JSON
{
"hex": "#313eac",
"rgb": {
"r": 49,
"g": 62,
"b": 172
},
"hsl": {
"h": 233.659,
"s": 55.656,
"l": 43.333
},
"oklch": {
"l": 0.42663,
"c": 0.17428,
"h": 271.5
},
"luminance": 0.07077
}Semantic roles & 50–950 ramp
primary
#313EAC
secondary
#C3BB76
accent
#CF49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82