#5154BD#5154BD

#5154BD is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.2% C 0.162 H 277.6°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5154BD
RGBrgb(81, 84, 189)
HSLhsl(238, 45%, 53%)
HSVhsv(238, 57%, 74%)
CMYKcmyk(57.1%, 55.6%, 0%, 25.9%)
CIE-LABlab(40.84, 29.62, -55.87)
CIE-LCHlch(40.84, 63.23, 297.93°)
OKLaboklab(50.18% 0.0214 -0.1601)
OKLCHoklch(50.18% 0.162 277.6)
XYZxyz(15.7460, 11.7630, 49.5750)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154BD #BDBA51
analogous
#518ABD #5154BD #8451BD
triadic
#5154BD #BD5154 #54BD51
tetradic
#5154BD #BD518A #BDBA51 #51BD84
square
#5154BD #BD518A #BDBA51 #51BD84
split-complementary
#5154BD #BD8451 #8ABD51
monochromatic
#292A6B #393C97 #5154BD #7D80CE #AAABDF

Accessibility & contrast

On white

6.26
#5154BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5154BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154BD
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154BD#FFFFFF#000000##FFFFFF
##5154BD1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0565C1
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#116C80
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5154bd;
/* rgb */ color: rgb(81, 84, 189);
/* oklch */ color: oklch(50.2% 0.162 277.6);
Tailwind
colors: {
  custom: {
    50: '#8b84d2',
    500: '#5154bd',
    950: '#000000',
  },
}
SCSS
$custom: #5154bd;
$custom-light: #8b84d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5154bd",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 238.333,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50176,
    "c": 0.16154,
    "h": 277.6
  },
  "luminance": 0.11764
}

Semantic roles & 50–950 ramp

primary
#5154BD
secondary
#CCCB9E
accent
#D153D5
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5154BD

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5154BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva