#5151AA#5151AA
#5151AA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.139 H 279.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).
Color values
| HEX | #5151AA |
|---|---|
| RGB | rgb(81, 81, 170) |
| HSL | hsl(240, 35%, 49%) |
| HSV | hsv(240, 52%, 67%) |
| CMYK | cmyk(52.4%, 52.4%, 0%, 33.3%) |
| CIE-LAB | lab(38.79, 25.30, -47.99) |
| CIE-LCH | lch(38.79, 54.25, 297.80°) |
| OKLab | oklab(48.23% 0.0238 -0.1369) |
| OKLCH | oklch(48.23% 0.139 279.8) |
| XYZ | xyz(13.5892, 10.5357, 39.3399) |
| Luminance | 0.1054 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 5.08
Iris
#6258C4
ΔE00 5.10
Blueberry
#464196
ΔE00 5.50
Twilight
#4E518B
ΔE00 5.65
Slate Blue
#6A5ACD
ΔE00 7.06
Warm Blue
#4B57DB
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151AA #AAAA51
analogous
#517EAA #5151AA #7E51AA
triadic
#5151AA #AA5151 #51AA51
tetradic
#5151AA #AA517E #AAAA51 #51AA7E
square
#5151AA #AA517E #AAAA51 #51AA7E
split-complementary
#5151AA #AA7E51 #7EAA51
monochromatic
#2A2A57 #3D3D81 #5151AA #7979BF #A2A2D3
Accessibility & contrast
On white
6.76
#5151AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.11
#5151AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151AA
6.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151AA | 1.00 | 6.76 | 3.11 | 6.76 |
| #FFFFFF | 6.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#235FAD
Deuteranopia (green-blind)
#1858A8
Tritanopia (blue-blind)
#2C6575
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5151aa; /* rgb */ color: rgb(81, 81, 170); /* oklch */ color: oklch(48.2% 0.139 279.8);
Tailwind
colors: {
custom: {
50: '#8881c4',
500: '#5151aa',
950: '#000000',
},
}SCSS
$custom: #5151aa; $custom-light: #8881c4; $custom-dark: #000000;
JSON
{
"hex": "#5151aa",
"rgb": {
"r": 81,
"g": 81,
"b": 170
},
"hsl": {
"h": 240,
"s": 35.458,
"l": 49.216
},
"oklch": {
"l": 0.48233,
"c": 0.13899,
"h": 279.8
},
"luminance": 0.10536
}Semantic roles & 50–950 ramp
primary
#5151AA
secondary
#C0C097
accent
#CB5CCB
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82