#313CA8#313CA8
#313CA8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.9% C 0.171 H 272.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).
Color values
| HEX | #313CA8 |
|---|---|
| RGB | rgb(49, 60, 168) |
| HSL | hsl(234, 55%, 43%) |
| HSV | hsv(234, 71%, 66%) |
| CMYK | cmyk(70.8%, 64.3%, 0%, 34.1%) |
| CIE-LAB | lab(31.14, 32.45, -59.30) |
| CIE-LCH | lch(31.14, 67.60, 298.68°) |
| OKLab | oklab(41.94% 0.0063 -0.1712) |
| OKLCH | oklch(41.94% 0.171 272.1) |
| XYZ | xyz(9.9480, 6.7109, 37.8093) |
| Luminance | 0.0671 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.70
Blueberry
#464196
ΔE00 4.40
Blue Blue
#2242C7
ΔE00 4.45
Ocean Blue
#4F42B5
ΔE00 4.73
Cobalt
#0047AB
ΔE00 5.87
Darkslateblue
#483D8B
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CA8 #A89D31
analogous
#3177A8 #313CA8 #6231A8
triadic
#313CA8 #A8313C #3CA831
tetradic
#313CA8 #A83177 #A89D31 #31A862
square
#313CA8 #A83177 #A89D31 #31A862
split-complementary
#313CA8 #A86231 #77A831
monochromatic
#151A49 #232B79 #313CA8 #4C57CB #7B84D8
Accessibility & contrast
On white
8.97
#313CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#313CA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CA8
8.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CA8 | 1.00 | 8.97 | 2.34 | 8.97 |
| #FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #313ca8; /* rgb */ color: rgb(49, 60, 168); /* oklch */ color: oklch(41.9% 0.171 272.1);
Tailwind
colors: {
custom: {
50: '#7a72c3',
500: '#313ca8',
950: '#000000',
},
}SCSS
$custom: #313ca8; $custom-light: #7a72c3; $custom-dark: #000000;
JSON
{
"hex": "#313ca8",
"rgb": {
"r": 49,
"g": 60,
"b": 168
},
"hsl": {
"h": 234.454,
"s": 54.839,
"l": 42.549
},
"oklch": {
"l": 0.41939,
"c": 0.17136,
"h": 272.1
},
"luminance": 0.06712
}Semantic roles & 50–950 ramp
primary
#313CA8
secondary
#C1BA74
accent
#D04ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82