#5151B0#5151B0
#5151B0 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.147 H 279.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).
Color values
| HEX | #5151B0 |
|---|---|
| RGB | rgb(81, 81, 176) |
| HSL | hsl(240, 38%, 50%) |
| HSV | hsv(240, 54%, 69%) |
| CMYK | cmyk(54%, 54%, 0%, 31%) |
| CIE-LAB | lab(39.19, 27.25, -50.90) |
| CIE-LCH | lch(39.19, 57.73, 298.16°) |
| OKLab | oklab(48.66% 0.0241 -0.1455) |
| OKLCH | oklch(48.66% 0.148 279.4) |
| XYZ | xyz(14.1698, 10.7679, 42.3976) |
| Luminance | 0.1077 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.44
Ocean Blue
#4F42B5
ΔE00 4.70
Blueberry
#464196
ΔE00 5.98
Warm Blue
#4B57DB
ΔE00 6.33
Slate Blue
#6A5ACD
ΔE00 6.41
Twilight
#4E518B
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151B0 #B0B051
analogous
#5180B0 #5151B0 #8051B0
triadic
#5151B0 #B05151 #51B051
tetradic
#5151B0 #B05180 #B0B051 #51B080
square
#5151B0 #B05180 #B0B051 #51B080
split-complementary
#5151B0 #B08051 #80B051
monochromatic
#2A2A5D #3D3D87 #5151B0 #7B7BC3 #A5A5D6
Accessibility & contrast
On white
6.66
#5151B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#5151B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151B0
6.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151B0 | 1.00 | 6.66 | 3.15 | 6.66 |
| #FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A60B3
Deuteranopia (green-blind)
#0759AE
Tritanopia (blue-blind)
#266678
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #5151b0; /* rgb */ color: rgb(81, 81, 176); /* oklch */ color: oklch(48.7% 0.147 279.4);
Tailwind
colors: {
custom: {
50: '#8982c8',
500: '#5151b0',
950: '#000000',
},
}SCSS
$custom: #5151b0; $custom-light: #8982c8; $custom-dark: #000000;
JSON
{
"hex": "#5151b0",
"rgb": {
"r": 81,
"g": 81,
"b": 176
},
"hsl": {
"h": 240,
"s": 37.549,
"l": 50.392
},
"oklch": {
"l": 0.4866,
"c": 0.1475,
"h": 279.4
},
"luminance": 0.10769
}Semantic roles & 50–950 ramp
primary
#5151B0
secondary
#C4C499
accent
#CE5ACE
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82