#331AEC#331AEC
#331AEC is a mid, highly saturated blue. Relative luminance 0.075; OKLCH L 45.4% C 0.278 H 271.5°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).
Color values
| HEX | #331AEC |
|---|---|
| RGB | rgb(51, 26, 236) |
| HSL | hsl(247, 85%, 51%) |
| HSV | hsv(247, 89%, 93%) |
| CMYK | cmyk(78.4%, 89%, 0%, 7.5%) |
| CIE-LAB | lab(32.91, 70.16, -96.06) |
| CIE-LCH | lch(32.91, 118.96, 306.14°) |
| OKLab | oklab(45.35% 0.0074 -0.2776) |
| OKLCH | oklch(45.35% 0.278 271.5) |
| XYZ | xyz(16.8699, 7.4968, 79.8985) |
| Luminance | 0.0750 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Rich Blue
#021BF9
ΔE00 1.69
Strong Blue
#0C06F7
ΔE00 1.88
Primary Blue
#0804F9
ΔE00 1.98
Blue
#0000FF
ΔE00 2.25
Blue Purple
#5A06EF
ΔE00 3.38
Blue Violet
#5D06E9
ΔE00 3.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#331AEC #D3EC1A
analogous
#1A6AEC #331AEC #9C1AEC
triadic
#331AEC #EC331A #1AEC33
tetradic
#331AEC #EC1A6A #D3EC1A #1AEC9C
square
#331AEC #EC1A6A #D3EC1A #1AEC9C
split-complementary
#331AEC #EC9C1A #6AEC1A
monochromatic
#190B81 #240FB9 #331AEC #6553F1 #988BF5
Accessibility & contrast
On white
8.40
#331AEC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#331AEC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #331AEC
8.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##331AEC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##331AEC | 1.00 | 8.40 | 2.50 | 8.40 |
| #FFFFFF | 8.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057F1
Deuteranopia (green-blind)
#0043E9
Tritanopia (blue-blind)
#00658C
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #331aec; /* rgb */ color: rgb(51, 26, 236); /* oklch */ color: oklch(45.4% 0.278 271.5);
Tailwind
colors: {
custom: {
50: '#8c63f4',
500: '#331aec',
950: '#000000',
},
}SCSS
$custom: #331aec; $custom-light: #8c63f4; $custom-dark: #000000;
JSON
{
"hex": "#331aec",
"rgb": {
"r": 51,
"g": 26,
"b": 236
},
"hsl": {
"h": 247.143,
"s": 84.677,
"l": 51.373
},
"oklch": {
"l": 0.45351,
"c": 0.27775,
"h": 271.5
},
"luminance": 0.07499
}Semantic roles & 50–950 ramp
primary
#331AEC
secondary
#D4DF83
accent
#FB2DE2
background
#F9F6FF
surface
#F2EBFF
border
#CCC6D7
text
#0F0617
muted
#7E7A85