#5154D7#5154D7
#5154D7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.2% C 0.196 H 276.2°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).
Color values
| HEX | #5154D7 |
|---|---|
| RGB | rgb(81, 84, 215) |
| HSL | hsl(239, 63%, 58%) |
| HSV | hsv(239, 62%, 84%) |
| CMYK | cmyk(62.3%, 60.9%, 0%, 15.7%) |
| CIE-LAB | lab(42.76, 38.20, -67.78) |
| CIE-LCH | lch(42.76, 77.80, 299.40°) |
| OKLab | oklab(52.2% 0.0212 -0.1951) |
| OKLCH | oklch(52.2% 0.196 276.2) |
| XYZ | xyz(18.8254, 12.9948, 65.7930) |
| Luminance | 0.1300 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 1.39
Iris
#6258C4
ΔE00 3.78
Slate Blue
#6A5ACD
ΔE00 4.36
Dark Periwinkle
#665FD1
ΔE00 4.38
Light Indigo
#6D5ACF
ΔE00 4.77
Electric Blue
#0652FF
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5154D7 #D7D451
analogous
#5197D7 #5154D7 #9151D7
triadic
#5154D7 #D75154 #54D751
tetradic
#5154D7 #D75197 #D7D451 #51D791
square
#5154D7 #D75197 #D7D451 #51D791
split-complementary
#5154D7 #D79151 #97D751
monochromatic
#20238D #2C2FBF #5154D7 #8385E2 #B5B6EE
Accessibility & contrast
On white
5.83
#5154D7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#5154D7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5154D7
5.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5154D7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5154D7 | 1.00 | 5.83 | 3.60 | 5.83 |
| #FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#00758D
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #5154d7; /* rgb */ color: rgb(81, 84, 215); /* oklch */ color: oklch(52.2% 0.196 276.2);
Tailwind
colors: {
custom: {
50: '#9084e4',
500: '#5154d7',
950: '#000000',
},
}SCSS
$custom: #5154d7; $custom-light: #9084e4; $custom-dark: #000000;
JSON
{
"hex": "#5154d7",
"rgb": {
"r": 81,
"g": 84,
"b": 215
},
"hsl": {
"h": 238.657,
"s": 62.617,
"l": 58.039
},
"oklch": {
"l": 0.52201,
"c": 0.19629,
"h": 276.2
},
"luminance": 0.12996
}Semantic roles & 50–950 ramp
primary
#5154D7
secondary
#DDDBA7
accent
#E242E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84