#313CAF#313CAF
#313CAF is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.181 H 271.9°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #313CAF |
|---|---|
| RGB | rgb(49, 60, 175) |
| HSL | hsl(235, 56%, 44%) |
| HSV | hsv(235, 72%, 69%) |
| CMYK | cmyk(72%, 65.7%, 0%, 31.4%) |
| CIE-LAB | lab(31.76, 34.95, -62.48) |
| CIE-LCH | lch(31.76, 71.59, 299.22°) |
| OKLab | oklab(42.58% 0.0059 -0.1805) |
| OKLCH | oklch(42.58% 0.181 271.9) |
| XYZ | xyz(10.6177, 6.9788, 41.3366) |
| Luminance | 0.0698 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.82
Blue Blue
#2242C7
ΔE00 3.64
Ocean Blue
#4F42B5
ΔE00 4.28
Blueberry
#464196
ΔE00 5.05
Blue With A Hint Of Purple
#533CC6
ΔE00 5.76
Cobalt
#0047AB
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CAF #AFA431
analogous
#317BAF #313CAF #6531AF
triadic
#313CAF #AF313C #3CAF31
tetradic
#313CAF #AF317B #AFA431 #31AF65
square
#313CAF #AF317B #AFA431 #31AF65
split-complementary
#313CAF #AF6531 #7BAF31
monochromatic
#161B4F #242C7F #313CAF #4F5ACE #7F87DB
Accessibility & contrast
On white
8.76
#313CAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#313CAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CAF
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CAF | 1.00 | 8.76 | 2.40 | 8.76 |
| #FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #313caf; /* rgb */ color: rgb(49, 60, 175); /* oklch */ color: oklch(42.6% 0.181 271.9);
Tailwind
colors: {
custom: {
50: '#7b72c8',
500: '#313caf',
950: '#000000',
},
}SCSS
$custom: #313caf; $custom-light: #7b72c8; $custom-dark: #000000;
JSON
{
"hex": "#313caf",
"rgb": {
"r": 49,
"g": 60,
"b": 175
},
"hsl": {
"h": 234.762,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.42583,
"c": 0.18063,
"h": 271.9
},
"luminance": 0.0698
}Semantic roles & 50–950 ramp
primary
#313CAF
secondary
#C4BD78
accent
#D248E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82