#313FB1#313FB1
#313FB1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.180 H 271.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #313FB1 |
|---|---|
| RGB | rgb(49, 63, 177) |
| HSL | hsl(233, 57%, 44%) |
| HSV | hsv(233, 72%, 69%) |
| CMYK | cmyk(72.3%, 64.4%, 0%, 30.6%) |
| CIE-LAB | lab(32.66, 33.75, -62.19) |
| CIE-LCH | lch(32.66, 70.76, 298.49°) |
| OKLab | oklab(43.3% 0.0037 -0.1797) |
| OKLCH | oklch(43.3% 0.18 271.2) |
| XYZ | xyz(10.9772, 7.3812, 42.4326) |
| Luminance | 0.0738 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.40
Blue Blue
#2242C7
ΔE00 3.05
Ocean Blue
#4F42B5
ΔE00 4.17
Blueberry
#464196
ΔE00 5.13
Cobalt
#0047AB
ΔE00 5.43
Blue With A Hint Of Purple
#533CC6
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313FB1 #B1A331
analogous
#317FB1 #313FB1 #6331B1
triadic
#313FB1 #B1313F #3FB131
tetradic
#313FB1 #B1317F #B1A331 #31B163
square
#313FB1 #B1317F #B1A331 #31B163
split-complementary
#313FB1 #B16331 #7FB131
monochromatic
#161D51 #242E81 #313FB1 #515ECF #808ADC
Accessibility & contrast
On white
8.48
#313FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#313FB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313FB1
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313FB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313FB1 | 1.00 | 8.48 | 2.48 | 8.48 |
| #FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #313fb1; /* rgb */ color: rgb(49, 63, 177); /* oklch */ color: oklch(43.3% 0.180 271.2);
Tailwind
colors: {
custom: {
50: '#7b74c9',
500: '#313fb1',
950: '#000000',
},
}SCSS
$custom: #313fb1; $custom-light: #7b74c9; $custom-dark: #000000;
JSON
{
"hex": "#313fb1",
"rgb": {
"r": 49,
"g": 63,
"b": 177
},
"hsl": {
"h": 233.438,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.43297,
"c": 0.17973,
"h": 271.2
},
"luminance": 0.07382
}Semantic roles & 50–950 ramp
primary
#313FB1
secondary
#C5BD79
accent
#CF48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82