#5154CD#5154CD

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

Color values

HEX#5154CD
RGBrgb(81, 84, 205)
HSLhsl(239, 55%, 56%)
HSVhsv(239, 60%, 80%)
CMYKcmyk(60.5%, 59%, 0%, 19.6%)
CIE-LABlab(41.99, 34.90, -63.27)
CIE-LCHlch(41.99, 72.26, 298.88°)
OKLaboklab(51.4% 0.0215 -0.1819)
OKLCHoklch(51.4% 0.183 276.7)
XYZxyz(17.5795, 12.4964, 59.2314)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154CD #CDCA51
analogous
#5192CD #5154CD #8C51CD
triadic
#5154CD #CD5154 #54CD51
tetradic
#5154CD #CD5192 #CDCA51 #51CD8C
square
#5154CD #CD5192 #CDCA51 #51CD8C
split-complementary
#5154CD #CD8C51 #92CD51
monochromatic
#25277F #3235AF #5154CD #8183DB #B0B1E8

Accessibility & contrast

On white

6.00
#5154CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5154CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154CD
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154CD#FFFFFF#000000##FFFFFF
##5154CD1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5154cd;
/* rgb */ color: rgb(81, 84, 205);
/* oklch */ color: oklch(51.4% 0.183 276.7);
Tailwind
colors: {
  custom: {
    50: '#8e84dd',
    500: '#5154cd',
    950: '#000000',
  },
}
SCSS
$custom: #5154cd;
$custom-light: #8e84dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5154cd",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 238.548,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51401,
    "c": 0.18317,
    "h": 276.7
  },
  "luminance": 0.12498
}

Semantic roles & 50–950 ramp

primary
#5154CD
secondary
#D7D5A3
accent
#DB49DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5154CD

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

Preview Lab → · Contrast checker → · Palette generator →

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