#5154DE#5154DE

#5154DE is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.8% C 0.205 H 275.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5154DE
RGBrgb(81, 84, 222)
HSLhsl(239, 68%, 59%)
HSVhsv(239, 64%, 87%)
CMYKcmyk(63.5%, 62.2%, 0%, 12.9%)
CIE-LABlab(43.30, 40.50, -70.88)
CIE-LCHlch(43.30, 81.64, 299.74°)
OKLaboklab(52.78% 0.0209 -0.2042)
OKLCHoklch(52.78% 0.205 275.8)
XYZxyz(19.7442, 13.3623, 70.6318)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154DE #DEDB51
analogous
#519BDE #5154DE #9451DE
triadic
#5154DE #DE5154 #54DE51
tetradic
#5154DE #DE519B #DEDB51 #51DE94
square
#5154DE #DE519B #DEDB51 #51DE94
split-complementary
#5154DE #DE9451 #9BDE51
monochromatic
#1D1F98 #272ACB #5154DE #8487E8 #B8B9F2

Accessibility & contrast

On white

5.72
#5154DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5154DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154DE
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154DE#FFFFFF#000000##FFFFFF
##5154DE1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE2
Deuteranopia (green-blind)
#0060DB
Tritanopia (blue-blind)
#007791
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5154de;
/* rgb */ color: rgb(81, 84, 222);
/* oklch */ color: oklch(52.8% 0.205 275.8);
Tailwind
colors: {
  custom: {
    50: '#9184e9',
    500: '#5154de',
    950: '#000000',
  },
}
SCSS
$custom: #5154de;
$custom-light: #9184e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5154de",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 222
  },
  "hsl": {
    "h": 238.723,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52775,
    "c": 0.20531,
    "h": 275.8
  },
  "luminance": 0.13364
}

Semantic roles & 50–950 ramp

primary
#5154DE
secondary
#E1E0AA
accent
#E73DEB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154DE

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

Preview Lab → · Contrast checker → · Palette generator →

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