#5154BF#5154BF
#5154BF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.164 H 277.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #5154BF |
|---|---|
| RGB | rgb(81, 84, 191) |
| HSL | hsl(238, 46%, 53%) |
| HSV | hsv(238, 58%, 75%) |
| CMYK | cmyk(57.6%, 56%, 0%, 25.1%) |
| CIE-LAB | lab(40.98, 30.28, -56.81) |
| CIE-LCH | lch(40.98, 64.37, 298.06°) |
| OKLab | oklab(50.33% 0.0215 -0.1629) |
| OKLCH | oklch(50.33% 0.164 277.5) |
| XYZ | xyz(15.9646, 11.8504, 50.7262) |
| Luminance | 0.1185 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.13
Warm Blue
#4B57DB
ΔE00 3.96
Slate Blue
#6A5ACD
ΔE00 4.94
Dark Periwinkle
#665FD1
ΔE00 5.26
Light Indigo
#6D5ACF
ΔE00 5.53
Ocean Blue
#4F42B5
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5154BF #BFBC51
analogous
#518BBF #5154BF #8551BF
triadic
#5154BF #BF5154 #54BF51
tetradic
#5154BF #BF518B #BFBC51 #51BF85
square
#5154BF #BF518B #BFBC51 #51BF85
split-complementary
#5154BF #BF8551 #8BBF51
monochromatic
#282A6D #393B9A #5154BF #7E80CF #AAACE0
Accessibility & contrast
On white
6.23
#5154BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#5154BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5154BF
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5154BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5154BF | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#0B6D81
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5154bf; /* rgb */ color: rgb(81, 84, 191); /* oklch */ color: oklch(50.3% 0.164 277.5);
Tailwind
colors: {
custom: {
50: '#8c84d3',
500: '#5154bf',
950: '#000000',
},
}SCSS
$custom: #5154bf; $custom-light: #8c84d3; $custom-dark: #000000;
JSON
{
"hex": "#5154bf",
"rgb": {
"r": 81,
"g": 84,
"b": 191
},
"hsl": {
"h": 238.364,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.50326,
"c": 0.16428,
"h": 277.5
},
"luminance": 0.11852
}Semantic roles & 50–950 ramp
primary
#5154BF
secondary
#CECC9E
accent
#D252D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83