#313FAC#313FAC
#313FAC is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.173 H 271.3°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).
Color values
| HEX | #313FAC |
|---|---|
| RGB | rgb(49, 63, 172) |
| HSL | hsl(233, 56%, 43%) |
| HSV | hsv(233, 72%, 67%) |
| CMYK | cmyk(71.5%, 63.4%, 0%, 32.5%) |
| CIE-LAB | lab(32.23, 31.95, -59.92) |
| CIE-LCH | lch(32.23, 67.91, 298.07°) |
| OKLab | oklab(42.84% 0.0039 -0.173) |
| OKLCH | oklch(42.84% 0.173 271.3) |
| XYZ | xyz(10.4880, 7.1855, 39.8559) |
| Luminance | 0.0719 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.24
Blue Blue
#2242C7
ΔE00 3.67
Ocean Blue
#4F42B5
ΔE00 4.47
Blueberry
#464196
ΔE00 4.65
Cobalt
#0047AB
ΔE00 5.22
Blue With A Hint Of Purple
#533CC6
ΔE00 6.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313FAC #AC9E31
analogous
#317CAC #313FAC #6031AC
triadic
#313FAC #AC313F #3FAC31
tetradic
#313FAC #AC317C #AC9E31 #31AC60
square
#313FAC #AC317C #AC9E31 #31AC60
split-complementary
#313FAC #AC6031 #7CAC31
monochromatic
#161C4D #232E7C #313FAC #4E5CCC #7D88DA
Accessibility & contrast
On white
8.62
#313FAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#313FAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313FAC
8.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313FAC | 1.00 | 8.62 | 2.44 | 8.62 |
| #FFFFFF | 8.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #313fac; /* rgb */ color: rgb(49, 63, 172); /* oklch */ color: oklch(42.8% 0.173 271.3);
Tailwind
colors: {
custom: {
50: '#7a74c6',
500: '#313fac',
950: '#000000',
},
}SCSS
$custom: #313fac; $custom-light: #7a74c6; $custom-dark: #000000;
JSON
{
"hex": "#313fac",
"rgb": {
"r": 49,
"g": 63,
"b": 172
},
"hsl": {
"h": 233.171,
"s": 55.656,
"l": 43.333
},
"oklch": {
"l": 0.42844,
"c": 0.17307,
"h": 271.3
},
"luminance": 0.07187
}Semantic roles & 50–950 ramp
primary
#313FAC
secondary
#C3BA76
accent
#CE49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82