#313CB6#313CB6
#313CB6 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.190 H 271.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).
Color values
| HEX | #313CB6 |
|---|---|
| RGB | rgb(49, 60, 182) |
| HSL | hsl(235, 58%, 45%) |
| HSV | hsv(235, 73%, 71%) |
| CMYK | cmyk(73.1%, 67%, 0%, 28.6%) |
| CIE-LAB | lab(32.39, 37.43, -65.59) |
| CIE-LCH | lch(32.39, 75.52, 299.71°) |
| OKLab | oklab(43.24% 0.0053 -0.1897) |
| OKLCH | oklch(43.24% 0.19 271.6) |
| XYZ | xyz(11.3231, 7.2609, 45.0517) |
| Luminance | 0.0726 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.41
Blue Blue
#2242C7
ΔE00 2.95
Ocean Blue
#4F42B5
ΔE00 4.03
Blue With A Hint Of Purple
#533CC6
ΔE00 5.08
Blue (survey)
#0343DF
ΔE00 5.52
Blueberry
#464196
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CB6 #B6AB31
analogous
#317EB6 #313CB6 #6931B6
triadic
#313CB6 #B6313C #3CB631
tetradic
#313CB6 #B6317E #B6AB31 #31B669
square
#313CB6 #B6317E #B6AB31 #31B669
split-complementary
#313CB6 #B66931 #7EB631
monochromatic
#171C56 #242C86 #313CB6 #535ED1 #848BDE
Accessibility & contrast
On white
8.56
#313CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#313CB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CB6
8.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CB6 | 1.00 | 8.56 | 2.45 | 8.56 |
| #FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #313cb6; /* rgb */ color: rgb(49, 60, 182); /* oklch */ color: oklch(43.2% 0.190 271.6);
Tailwind
colors: {
custom: {
50: '#7d72cd',
500: '#313cb6',
950: '#000000',
},
}SCSS
$custom: #313cb6; $custom-light: #7d72cd; $custom-dark: #000000;
JSON
{
"hex": "#313cb6",
"rgb": {
"r": 49,
"g": 60,
"b": 182
},
"hsl": {
"h": 235.038,
"s": 57.576,
"l": 45.294
},
"oklch": {
"l": 0.43241,
"c": 0.18974,
"h": 271.6
},
"luminance": 0.07262
}Semantic roles & 50–950 ramp
primary
#313CB6
secondary
#C7C17C
accent
#D447E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82