#311FC2#311FC2
#311FC2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.6% C 0.231 H 273.9°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).
Color values
| HEX | #311FC2 |
|---|---|
| RGB | rgb(49, 31, 194) |
| HSL | hsl(247, 72%, 44%) |
| HSV | hsv(247, 84%, 76%) |
| CMYK | cmyk(74.7%, 84%, 0%, 23.9%) |
| CIE-LAB | lab(28.19, 56.78, -79.64) |
| CIE-LCH | lch(28.19, 97.80, 305.49°) |
| OKLab | oklab(40.64% 0.0156 -0.2303) |
| OKLCH | oklch(40.64% 0.231 273.9) |
| XYZ | xyz(11.4910, 5.5268, 51.4897) |
| Luminance | 0.0553 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.61
True Blue
#010FCC
ΔE00 2.73
Ultramarine Blue
#1805DB
ΔE00 3.33
Mediumblue
#0000CD
ΔE00 3.58
Violet Blue
#510AC9
ΔE00 3.82
Pure Blue
#0203E2
ΔE00 3.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311FC2 #B0C21F
analogous
#1F5FC2 #311FC2 #831FC2
triadic
#311FC2 #C2311F #1FC231
tetradic
#311FC2 #C21F5F #B0C21F #1FC283
square
#311FC2 #C21F5F #B0C21F #1FC283
split-complementary
#311FC2 #C2831F #5FC21F
monochromatic
#160E58 #24178D #311FC2 #503EE0 #8073E9
Accessibility & contrast
On white
9.97
#311FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#311FC2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311FC2
9.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311FC2 | 1.00 | 9.97 | 2.11 | 9.97 |
| #FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003BBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #311fc2; /* rgb */ color: rgb(49, 31, 194); /* oklch */ color: oklch(40.6% 0.231 273.9);
Tailwind
colors: {
custom: {
50: '#8261d6',
500: '#311fc2',
950: '#000000',
},
}SCSS
$custom: #311fc2; $custom-light: #8261d6; $custom-dark: #000000;
JSON
{
"hex": "#311fc2",
"rgb": {
"r": 49,
"g": 31,
"b": 194
},
"hsl": {
"h": 246.626,
"s": 72.444,
"l": 44.118
},
"oklch": {
"l": 0.40635,
"c": 0.23079,
"h": 273.9
},
"luminance": 0.05528
}Semantic roles & 50–950 ramp
primary
#311FC2
secondary
#C5CF6D
accent
#EF39DB
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0515
muted
#7D7A83