#313EAA#313EAA
#313EAA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.172 H 271.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #313EAA |
|---|---|
| RGB | rgb(49, 62, 170) |
| HSL | hsl(234, 55%, 43%) |
| HSV | hsv(234, 71%, 67%) |
| CMYK | cmyk(71.2%, 63.5%, 0%, 33.3%) |
| CIE-LAB | lab(31.81, 31.88, -59.41) |
| CIE-LCH | lch(31.81, 67.42, 298.22°) |
| OKLab | oklab(42.48% 0.0048 -0.1715) |
| OKLCH | oklch(42.48% 0.172 271.6) |
| XYZ | xyz(10.2425, 6.9995, 38.8337) |
| Luminance | 0.0700 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.02
Blue Blue
#2242C7
ΔE00 4.00
Blueberry
#464196
ΔE00 4.49
Ocean Blue
#4F42B5
ΔE00 4.58
Cobalt
#0047AB
ΔE00 5.41
Darkslateblue
#483D8B
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313EAA #AA9D31
analogous
#317AAA #313EAA #6131AA
triadic
#313EAA #AA313E #3EAA31
tetradic
#313EAA #AA317A #AA9D31 #31AA61
square
#313EAA #AA317A #AA9D31 #31AA61
split-complementary
#313EAA #AA6131 #7AAA31
monochromatic
#161B4B #232D7A #313EAA #4D5ACC #7C86D9
Accessibility & contrast
On white
8.75
#313EAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#313EAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313EAA
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313EAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313EAA | 1.00 | 8.75 | 2.40 | 8.75 |
| #FFFFFF | 8.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #313eaa; /* rgb */ color: rgb(49, 62, 170); /* oklch */ color: oklch(42.5% 0.172 271.6);
Tailwind
colors: {
custom: {
50: '#7a73c4',
500: '#313eaa',
950: '#000000',
},
}SCSS
$custom: #313eaa; $custom-light: #7a73c4; $custom-dark: #000000;
JSON
{
"hex": "#313eaa",
"rgb": {
"r": 49,
"g": 62,
"b": 170
},
"hsl": {
"h": 233.554,
"s": 55.251,
"l": 42.941
},
"oklch": {
"l": 0.42482,
"c": 0.17162,
"h": 271.6
},
"luminance": 0.07
}Semantic roles & 50–950 ramp
primary
#313EAA
secondary
#C2BA75
accent
#CF49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82