#313FB2#313FB2
#313FB2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.181 H 271.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).
Color values
| HEX | #313FB2 |
|---|---|
| RGB | rgb(49, 63, 178) |
| HSL | hsl(233, 57%, 45%) |
| HSV | hsv(233, 72%, 70%) |
| CMYK | cmyk(72.5%, 64.6%, 0%, 30.2%) |
| CIE-LAB | lab(32.75, 34.11, -62.64) |
| CIE-LCH | lch(32.75, 71.33, 298.57°) |
| OKLab | oklab(43.39% 0.0036 -0.181) |
| OKLCH | oklch(43.39% 0.181 271.2) |
| XYZ | xyz(11.0773, 7.4212, 42.9595) |
| Luminance | 0.0742 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.46
Blue Blue
#2242C7
ΔE00 2.93
Ocean Blue
#4F42B5
ΔE00 4.13
Blueberry
#464196
ΔE00 5.23
Cobalt
#0047AB
ΔE00 5.49
Blue With A Hint Of Purple
#533CC6
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313FB2 #B2A431
analogous
#3180B2 #313FB2 #6331B2
triadic
#313FB2 #B2313F #3FB231
tetradic
#313FB2 #B23180 #B2A431 #31B263
square
#313FB2 #B23180 #B2A431 #31B263
split-complementary
#313FB2 #B26331 #80B231
monochromatic
#171D52 #242E82 #313FB2 #515FCF #818BDC
Accessibility & contrast
On white
8.45
#313FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#313FB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313FB2
8.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313FB2 | 1.00 | 8.45 | 2.48 | 8.45 |
| #FFFFFF | 8.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #313fb2; /* rgb */ color: rgb(49, 63, 178); /* oklch */ color: oklch(43.4% 0.181 271.2);
Tailwind
colors: {
custom: {
50: '#7c74ca',
500: '#313fb2',
950: '#000000',
},
}SCSS
$custom: #313fb2; $custom-light: #7c74ca; $custom-dark: #000000;
JSON
{
"hex": "#313fb2",
"rgb": {
"r": 49,
"g": 63,
"b": 178
},
"hsl": {
"h": 233.488,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.43389,
"c": 0.18105,
"h": 271.2
},
"luminance": 0.07422
}Semantic roles & 50–950 ramp
primary
#313FB2
secondary
#C5BD79
accent
#D048E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82