#5154C8#5154C8
#5154C8 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.0% C 0.176 H 277.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).
Color values
| HEX | #5154C8 |
|---|---|
| RGB | rgb(81, 84, 200) |
| HSL | hsl(238, 52%, 55%) |
| HSV | hsv(238, 60%, 78%) |
| CMYK | cmyk(59.5%, 58%, 0%, 21.6%) |
| CIE-LAB | lab(41.62, 33.25, -60.99) |
| CIE-LCH | lch(41.62, 69.46, 298.60°) |
| OKLab | oklab(51.01% 0.0216 -0.1752) |
| OKLCH | oklch(51.01% 0.176 277) |
| XYZ | xyz(16.9856, 12.2588, 56.1035) |
| Luminance | 0.1226 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.79
Iris
#6258C4
ΔE00 3.02
Slate Blue
#6A5ACD
ΔE00 4.48
Dark Periwinkle
#665FD1
ΔE00 4.71
Light Indigo
#6D5ACF
ΔE00 5.03
Ocean Blue
#4F42B5
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5154C8 #C8C551
analogous
#5190C8 #5154C8 #8951C8
triadic
#5154C8 #C85154 #54C851
tetradic
#5154C8 #C85190 #C8C551 #51C889
square
#5154C8 #C85190 #C8C551 #51C889
split-complementary
#5154C8 #C88951 #90C851
monochromatic
#262879 #3538A7 #5154C8 #8082D7 #AEAFE5
Accessibility & contrast
On white
6.08
#5154C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#5154C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5154C8
6.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5154C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5154C8 | 1.00 | 6.08 | 3.45 | 6.08 |
| #FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #5154c8; /* rgb */ color: rgb(81, 84, 200); /* oklch */ color: oklch(51.0% 0.176 277.0);
Tailwind
colors: {
custom: {
50: '#8d84d9',
500: '#5154c8',
950: '#000000',
},
}SCSS
$custom: #5154c8; $custom-light: #8d84d9; $custom-dark: #000000;
JSON
{
"hex": "#5154c8",
"rgb": {
"r": 81,
"g": 84,
"b": 200
},
"hsl": {
"h": 238.487,
"s": 51.965,
"l": 55.098
},
"oklch": {
"l": 0.51011,
"c": 0.17649,
"h": 277
},
"luminance": 0.1226
}Semantic roles & 50–950 ramp
primary
#5154C8
secondary
#D3D2A1
accent
#D84CDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83