#311CD2#311CD2
#311CD2 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 42.3% C 0.250 H 272.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #311CD2 |
|---|---|
| RGB | rgb(49, 28, 210) |
| HSL | hsl(247, 76%, 47%) |
| HSV | hsv(247, 87%, 82%) |
| CMYK | cmyk(76.7%, 86.7%, 0%, 17.6%) |
| CIE-LAB | lab(29.75, 62.45, -86.39) |
| CIE-LCH | lch(29.75, 106.60, 305.86°) |
| OKLab | oklab(42.26% 0.0118 -0.2497) |
| OKLCH | oklch(42.26% 0.25 272.7) |
| XYZ | xyz(13.3109, 6.1352, 61.4430) |
| Luminance | 0.0614 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ultramarine Blue
#1805DB
ΔE00 2.29
Pure Blue
#0203E2
ΔE00 2.63
True Blue
#010FCC
ΔE00 3.01
Violet Blue
#510AC9
ΔE00 3.41
Mediumblue
#0000CD
ΔE00 3.76
Strong Blue
#0C06F7
ΔE00 3.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311CD2 #BDD21C
analogous
#1C62D2 #311CD2 #8C1CD2
triadic
#311CD2 #D2311C #1CD231
tetradic
#311CD2 #D21C62 #BDD21C #1CD28C
square
#311CD2 #D21C62 #BDD21C #1CD28C
split-complementary
#311CD2 #D28C1C #62D21C
monochromatic
#180E66 #24159C #311CD2 #5845E6 #887BED
Accessibility & contrast
On white
9.43
#311CD2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#311CD2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311CD2
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311CD2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311CD2 | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004ED7
Deuteranopia (green-blind)
#003DCF
Tritanopia (blue-blind)
#005B7D
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #311cd2; /* rgb */ color: rgb(49, 28, 210); /* oklch */ color: oklch(42.3% 0.250 272.7);
Tailwind
colors: {
custom: {
50: '#8661e2',
500: '#311cd2',
950: '#000000',
},
}SCSS
$custom: #311cd2; $custom-light: #8661e2; $custom-dark: #000000;
JSON
{
"hex": "#311cd2",
"rgb": {
"r": 49,
"g": 28,
"b": 210
},
"hsl": {
"h": 246.923,
"s": 76.471,
"l": 46.667
},
"oklch": {
"l": 0.4226,
"c": 0.25003,
"h": 272.7
},
"luminance": 0.06137
}Semantic roles & 50–950 ramp
primary
#311CD2
secondary
#CAD575
accent
#F335DD
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0D0516
muted
#7E7A84