#5154CE#5154CE

#5154CE is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.184 H 276.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5154CE
RGBrgb(81, 84, 206)
HSLhsl(239, 56%, 56%)
HSVhsv(239, 61%, 81%)
CMYKcmyk(60.7%, 59.2%, 0%, 19.2%)
CIE-LABlab(42.07, 35.23, -63.73)
CIE-LCHlch(42.07, 72.82, 298.94°)
OKLaboklab(51.48% 0.0215 -0.1832)
OKLCHoklch(51.48% 0.184 276.7)
XYZxyz(17.7006, 12.5448, 59.8692)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154CE #CECB51
analogous
#5193CE #5154CE #8D51CE
triadic
#5154CE #CE5154 #54CE51
tetradic
#5154CE #CE5193 #CECB51 #51CE8D
square
#5154CE #CE5193 #CECB51 #51CE8D
split-complementary
#5154CE #CE8D51 #93CE51
monochromatic
#242680 #3235B0 #5154CE #8183DB #B1B2E9

Accessibility & contrast

On white

5.98
#5154CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5154CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154CE
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154CE#FFFFFF#000000##FFFFFF
##5154CE1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5154ce;
/* rgb */ color: rgb(81, 84, 206);
/* oklch */ color: oklch(51.5% 0.184 276.7);
Tailwind
colors: {
  custom: {
    50: '#8e84de',
    500: '#5154ce',
    950: '#000000',
  },
}
SCSS
$custom: #5154ce;
$custom-light: #8e84de;
$custom-dark: #000000;
JSON
{
  "hex": "#5154ce",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 206
  },
  "hsl": {
    "h": 238.56,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5148,
    "c": 0.18448,
    "h": 276.7
  },
  "luminance": 0.12546
}

Semantic roles & 50–950 ramp

primary
#5154CE
secondary
#D7D6A4
accent
#DC48DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5154CE

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

Preview Lab → · Contrast checker → · Palette generator →

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