#5151B2#5151B2
#5151B2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.8% C 0.150 H 279.3°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).
Color values
| HEX | #5151B2 |
|---|---|
| RGB | rgb(81, 81, 178) |
| HSL | hsl(240, 39%, 51%) |
| HSV | hsv(240, 54%, 70%) |
| CMYK | cmyk(54.5%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(39.32, 27.90, -51.86) |
| CIE-LCH | lch(39.32, 58.89, 298.28°) |
| OKLab | oklab(48.81% 0.0242 -0.1483) |
| OKLCH | oklch(48.81% 0.15 279.3) |
| XYZ | xyz(14.3691, 10.8476, 43.4475) |
| Luminance | 0.1085 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 4.25
Ocean Blue
#4F42B5
ΔE00 4.61
Warm Blue
#4B57DB
ΔE00 6.05
Blueberry
#464196
ΔE00 6.17
Slate Blue
#6A5ACD
ΔE00 6.21
Bluey Purple
#6241C7
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5151B2 #B2B251
analogous
#5181B2 #5151B2 #8151B2
triadic
#5151B2 #B25151 #51B251
tetradic
#5151B2 #B25181 #B2B251 #51B281
square
#5151B2 #B25181 #B2B251 #51B281
split-complementary
#5151B2 #B28151 #81B251
monochromatic
#2A2A5F #3D3D89 #5151B2 #7B7BC5 #A6A6D8
Accessibility & contrast
On white
6.63
#5151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#5151B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5151B2
6.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5151B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5151B2 | 1.00 | 6.63 | 3.17 | 6.63 |
| #FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1661B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#246779
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #5151b2; /* rgb */ color: rgb(81, 81, 178); /* oklch */ color: oklch(48.8% 0.150 279.3);
Tailwind
colors: {
custom: {
50: '#8a82ca',
500: '#5151b2',
950: '#000000',
},
}SCSS
$custom: #5151b2; $custom-light: #8a82ca; $custom-dark: #000000;
JSON
{
"hex": "#5151b2",
"rgb": {
"r": 81,
"g": 81,
"b": 178
},
"hsl": {
"h": 240,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.48805,
"c": 0.1503,
"h": 279.3
},
"luminance": 0.10849
}Semantic roles & 50–950 ramp
primary
#5151B2
secondary
#C5C59A
accent
#CF59CF
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82