#5154D8#5154D8

#5154D8 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 52.3% C 0.198 H 276.1°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5154D8
RGBrgb(81, 84, 216)
HSLhsl(239, 63%, 58%)
HSVhsv(239, 63%, 85%)
CMYKcmyk(62.5%, 61.1%, 0%, 15.3%)
CIE-LABlab(42.83, 38.53, -68.23)
CIE-LCHlch(42.83, 78.35, 299.45°)
OKLaboklab(52.28% 0.0212 -0.1965)
OKLCHoklch(52.28% 0.198 276.1)
XYZxyz(18.9543, 13.0463, 66.4718)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154D8 #D8D551
analogous
#5197D8 #5154D8 #9151D8
triadic
#5154D8 #D85154 #54D851
tetradic
#5154D8 #D85197 #D8D551 #51D891
square
#5154D8 #D85197 #D8D551 #51D891
split-complementary
#5154D8 #D89151 #97D851
monochromatic
#20228F #2B2EC1 #5154D8 #8385E3 #B5B6EE

Accessibility & contrast

On white

5.82
#5154D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5154D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154D8
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154D8#FFFFFF#000000##FFFFFF
##5154D81.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#005FD5
Tritanopia (blue-blind)
#00758E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5154d8;
/* rgb */ color: rgb(81, 84, 216);
/* oklch */ color: oklch(52.3% 0.198 276.1);
Tailwind
colors: {
  custom: {
    50: '#9084e5',
    500: '#5154d8',
    950: '#000000',
  },
}
SCSS
$custom: #5154d8;
$custom-light: #9084e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5154d8",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 216
  },
  "hsl": {
    "h": 238.667,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52282,
    "c": 0.19759,
    "h": 276.1
  },
  "luminance": 0.13048
}

Semantic roles & 50–950 ramp

primary
#5154D8
secondary
#DDDCA8
accent
#E341E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154D8

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

Preview Lab → · Contrast checker → · Palette generator →

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