#313CB2#313CB2
#313CB2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.185 H 271.7°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #313CB2 |
|---|---|
| RGB | rgb(49, 60, 178) |
| HSL | hsl(235, 57%, 45%) |
| HSV | hsv(235, 72%, 70%) |
| CMYK | cmyk(72.5%, 66.3%, 0%, 30.2%) |
| CIE-LAB | lab(32.03, 36.02, -63.82) |
| CIE-LCH | lch(32.03, 73.28, 299.44°) |
| OKLab | oklab(42.86% 0.0056 -0.1845) |
| OKLCH | oklch(42.86% 0.185 271.7) |
| XYZ | xyz(10.9156, 7.0979, 42.9056) |
| Luminance | 0.0710 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.03
Blue Blue
#2242C7
ΔE00 3.32
Ocean Blue
#4F42B5
ΔE00 4.15
Blueberry
#464196
ΔE00 5.34
Blue With A Hint Of Purple
#533CC6
ΔE00 5.46
Blue (survey)
#0343DF
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CB2 #B2A731
analogous
#317CB2 #313CB2 #6731B2
triadic
#313CB2 #B2313C #3CB231
tetradic
#313CB2 #B2317C #B2A731 #31B267
square
#313CB2 #B2317C #B2A731 #31B267
split-complementary
#313CB2 #B26731 #7CB231
monochromatic
#171C52 #242C82 #313CB2 #515CCF #8189DC
Accessibility & contrast
On white
8.68
#313CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#313CB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CB2
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CB2 | 1.00 | 8.68 | 2.42 | 8.68 |
| #FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #313cb2; /* rgb */ color: rgb(49, 60, 178); /* oklch */ color: oklch(42.9% 0.185 271.7);
Tailwind
colors: {
custom: {
50: '#7c72ca',
500: '#313cb2',
950: '#000000',
},
}SCSS
$custom: #313cb2; $custom-light: #7c72ca; $custom-dark: #000000;
JSON
{
"hex": "#313cb2",
"rgb": {
"r": 49,
"g": 60,
"b": 178
},
"hsl": {
"h": 234.884,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.42863,
"c": 0.18456,
"h": 271.7
},
"luminance": 0.07099
}Semantic roles & 50–950 ramp
primary
#313CB2
secondary
#C5BF79
accent
#D348E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82