#5154BB#5154BB
#5154BB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.0% C 0.159 H 277.7°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #5154BB |
|---|---|
| RGB | rgb(81, 84, 187) |
| HSL | hsl(238, 44%, 53%) |
| HSV | hsv(238, 57%, 73%) |
| CMYK | cmyk(56.7%, 55.1%, 0%, 26.7%) |
| CIE-LAB | lab(40.70, 28.96, -54.92) |
| CIE-LCH | lch(40.70, 62.09, 297.80°) |
| OKLab | oklab(50.03% 0.0214 -0.1573) |
| OKLCH | oklch(50.03% 0.159 277.7) |
| XYZ | xyz(15.5304, 11.6768, 48.4395) |
| Luminance | 0.1168 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 3.33
Warm Blue
#4B57DB
ΔE00 4.51
Slate Blue
#6A5ACD
ΔE00 5.24
Ocean Blue
#4F42B5
ΔE00 5.48
Dark Periwinkle
#665FD1
ΔE00 5.58
Light Indigo
#6D5ACF
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5154BB #BBB851
analogous
#5189BB #5154BB #8351BB
triadic
#5154BB #BB5154 #54BB51
tetradic
#5154BB #BB5189 #BBB851 #51BB83
square
#5154BB #BB5189 #BBB851 #51BB83
split-complementary
#5154BB #BB8351 #89BB51
monochromatic
#292B69 #3A3D95 #5154BB #7D7FCC #A9AADD
Accessibility & contrast
On white
6.30
#5154BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#5154BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5154BB
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5154BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5154BB | 1.00 | 6.30 | 3.34 | 6.30 |
| #FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D64BF
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#156C7F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5154bb; /* rgb */ color: rgb(81, 84, 187); /* oklch */ color: oklch(50.0% 0.159 277.7);
Tailwind
colors: {
custom: {
50: '#8b84d0',
500: '#5154bb',
950: '#000000',
},
}SCSS
$custom: #5154bb; $custom-light: #8b84d0; $custom-dark: #000000;
JSON
{
"hex": "#5154bb",
"rgb": {
"r": 81,
"g": 84,
"b": 187
},
"hsl": {
"h": 238.302,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.50028,
"c": 0.15877,
"h": 277.7
},
"luminance": 0.11678
}Semantic roles & 50–950 ramp
primary
#5154BB
secondary
#CBCA9D
accent
#D054D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0A14
muted
#7E7C82