#5154DC#5154DC

#5154DC is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.6% C 0.203 H 275.9°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5154DC
RGBrgb(81, 84, 220)
HSLhsl(239, 67%, 59%)
HSVhsv(239, 63%, 86%)
CMYKcmyk(63.2%, 61.8%, 0%, 13.7%)
CIE-LABlab(43.15, 39.84, -70.00)
CIE-LCHlch(43.15, 80.55, 299.65°)
OKLaboklab(52.61% 0.021 -0.2017)
OKLCHoklch(52.61% 0.203 275.9)
XYZxyz(19.4777, 13.2557, 69.2284)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154DC #DCD951
analogous
#519ADC #5154DC #9451DC
triadic
#5154DC #DC5154 #54DC51
tetradic
#5154DC #DC519A #DCD951 #51DC94
square
#5154DC #DC519A #DCD951 #51DC94
split-complementary
#5154DC #DC9451 #9ADC51
monochromatic
#1E2095 #282CC8 #5154DC #8486E6 #B7B8F0

Accessibility & contrast

On white

5.75
#5154DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5154DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154DC
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154DC#FFFFFF#000000##FFFFFF
##5154DC1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#007690
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5154dc;
/* rgb */ color: rgb(81, 84, 220);
/* oklch */ color: oklch(52.6% 0.203 275.9);
Tailwind
colors: {
  custom: {
    50: '#9084e8',
    500: '#5154dc',
    950: '#000000',
  },
}
SCSS
$custom: #5154dc;
$custom-light: #9084e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5154dc",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 238.705,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5261,
    "c": 0.20275,
    "h": 275.9
  },
  "luminance": 0.13257
}

Semantic roles & 50–950 ramp

primary
#5154DC
secondary
#E0DFA9
accent
#E63EE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154DC

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

Preview Lab → · Contrast checker → · Palette generator →

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