#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
RGBrgb(81, 84, 191)
HSLhsl(238, 46%, 53%)
HSVhsv(238, 58%, 75%)
CMYKcmyk(57.6%, 56%, 0%, 25.1%)
CIE-LABlab(40.98, 30.28, -56.81)
CIE-LCHlch(40.98, 64.37, 298.06°)
OKLaboklab(50.33% 0.0215 -0.1629)
OKLCHoklch(50.33% 0.164 277.5)
XYZxyz(15.9646, 11.8504, 50.7262)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##5154BF1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.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

Preview Lab

Preview with #5154BF

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

Preview Lab → · Contrast checker → · Palette generator →

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