#5154BE#5154BE
#5154BE is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.3% C 0.163 H 277.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #5154BE |
|---|---|
| RGB | rgb(81, 84, 190) |
| HSL | hsl(238, 46%, 53%) |
| HSV | hsv(238, 57%, 75%) |
| CMYK | cmyk(57.4%, 55.8%, 0%, 25.5%) |
| CIE-LAB | lab(40.91, 29.95, -56.34) |
| CIE-LCH | lch(40.91, 63.80, 298.00°) |
| OKLab | oklab(50.25% 0.0215 -0.1615) |
| OKLCH | oklch(50.25% 0.163 277.6) |
| XYZ | xyz(15.8550, 11.8066, 50.1486) |
| Luminance | 0.1181 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.17
Warm Blue
#4B57DB
ΔE00 4.10
Slate Blue
#6A5ACD
ΔE00 5.01
Dark Periwinkle
#665FD1
ΔE00 5.33
Ocean Blue
#4F42B5
ΔE00 5.52
Light Indigo
#6D5ACF
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5154BE #BEBB51
analogous
#518ABE #5154BE #8451BE
triadic
#5154BE #BE5154 #54BE51
tetradic
#5154BE #BE518A #BEBB51 #51BE84
square
#5154BE #BE518A #BEBB51 #51BE84
split-complementary
#5154BE #BE8451 #8ABE51
monochromatic
#282A6C #393C99 #5154BE #7E80CF #AAACDF
Accessibility & contrast
On white
6.25
#5154BE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#5154BE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5154BE
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5154BE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5154BE | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0165C2
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#0E6D81
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5154be; /* rgb */ color: rgb(81, 84, 190); /* oklch */ color: oklch(50.3% 0.163 277.6);
Tailwind
colors: {
custom: {
50: '#8b84d2',
500: '#5154be',
950: '#000000',
},
}SCSS
$custom: #5154be; $custom-light: #8b84d2; $custom-dark: #000000;
JSON
{
"hex": "#5154be",
"rgb": {
"r": 81,
"g": 84,
"b": 190
},
"hsl": {
"h": 238.349,
"s": 45.607,
"l": 53.137
},
"oklch": {
"l": 0.50251,
"c": 0.16291,
"h": 277.6
},
"luminance": 0.11808
}Semantic roles & 50–950 ramp
primary
#5154BE
secondary
#CDCC9E
accent
#D253D5
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83