#313EAB#313EAB
#313EAB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.173 H 271.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #313EAB |
|---|---|
| RGB | rgb(49, 62, 171) |
| HSL | hsl(234, 55%, 43%) |
| HSV | hsv(234, 71%, 67%) |
| CMYK | cmyk(71.3%, 63.7%, 0%, 32.9%) |
| CIE-LAB | lab(31.89, 32.24, -59.87) |
| CIE-LCH | lch(31.89, 67.99, 298.30°) |
| OKLab | oklab(42.57% 0.0047 -0.1729) |
| OKLCH | oklch(42.57% 0.173 271.6) |
| XYZ | xyz(10.3374, 7.0375, 39.3338) |
| Luminance | 0.0704 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.02
Blue Blue
#2242C7
ΔE00 3.87
Ocean Blue
#4F42B5
ΔE00 4.51
Blueberry
#464196
ΔE00 4.57
Cobalt
#0047AB
ΔE00 5.44
Blue With A Hint Of Purple
#533CC6
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313EAB #AB9E31
analogous
#317BAB #313EAB #6131AB
triadic
#313EAB #AB313E #3EAB31
tetradic
#313EAB #AB317B #AB9E31 #31AB61
square
#313EAB #AB317B #AB9E31 #31AB61
split-complementary
#313EAB #AB6131 #7BAB31
monochromatic
#161C4C #232D7B #313EAB #4D5BCC #7D87DA
Accessibility & contrast
On white
8.72
#313EAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#313EAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313EAB
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313EAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313EAB | 1.00 | 8.72 | 2.41 | 8.72 |
| #FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #313eab; /* rgb */ color: rgb(49, 62, 171); /* oklch */ color: oklch(42.6% 0.173 271.6);
Tailwind
colors: {
custom: {
50: '#7a73c5',
500: '#313eab',
950: '#000000',
},
}SCSS
$custom: #313eab; $custom-light: #7a73c5; $custom-dark: #000000;
JSON
{
"hex": "#313eab",
"rgb": {
"r": 49,
"g": 62,
"b": 171
},
"hsl": {
"h": 233.607,
"s": 55.455,
"l": 43.137
},
"oklch": {
"l": 0.42573,
"c": 0.17295,
"h": 271.6
},
"luminance": 0.07038
}Semantic roles & 50–950 ramp
primary
#313EAB
secondary
#C2BA75
accent
#CF49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82