#5154C8#5154C8

#5154C8 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.0% C 0.176 H 277.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5154C8
RGBrgb(81, 84, 200)
HSLhsl(238, 52%, 55%)
HSVhsv(238, 60%, 78%)
CMYKcmyk(59.5%, 58%, 0%, 21.6%)
CIE-LABlab(41.62, 33.25, -60.99)
CIE-LCHlch(41.62, 69.46, 298.60°)
OKLaboklab(51.01% 0.0216 -0.1752)
OKLCHoklch(51.01% 0.176 277)
XYZxyz(16.9856, 12.2588, 56.1035)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154C8 #C8C551
analogous
#5190C8 #5154C8 #8951C8
triadic
#5154C8 #C85154 #54C851
tetradic
#5154C8 #C85190 #C8C551 #51C889
square
#5154C8 #C85190 #C8C551 #51C889
split-complementary
#5154C8 #C88951 #90C851
monochromatic
#262879 #3538A7 #5154C8 #8082D7 #AEAFE5

Accessibility & contrast

On white

6.08
#5154C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5154C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154C8
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154C8#FFFFFF#000000##FFFFFF
##5154C81.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5154c8;
/* rgb */ color: rgb(81, 84, 200);
/* oklch */ color: oklch(51.0% 0.176 277.0);
Tailwind
colors: {
  custom: {
    50: '#8d84d9',
    500: '#5154c8',
    950: '#000000',
  },
}
SCSS
$custom: #5154c8;
$custom-light: #8d84d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5154c8",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 238.487,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51011,
    "c": 0.17649,
    "h": 277
  },
  "luminance": 0.1226
}

Semantic roles & 50–950 ramp

primary
#5154C8
secondary
#D3D2A1
accent
#D84CDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5154C8

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

Preview Lab → · Contrast checker → · Palette generator →

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