#5154D9#5154D9

#5154D9 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.4% C 0.199 H 276.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5154D9
RGBrgb(81, 84, 217)
HSLhsl(239, 64%, 58%)
HSVhsv(239, 63%, 85%)
CMYKcmyk(62.7%, 61.3%, 0%, 14.9%)
CIE-LABlab(42.91, 38.86, -68.67)
CIE-LCHlch(42.91, 78.90, 299.50°)
OKLaboklab(52.36% 0.0211 -0.1978)
OKLCHoklch(52.36% 0.199 276.1)
XYZxyz(19.0840, 13.0982, 67.1547)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154D9 #D9D651
analogous
#5198D9 #5154D9 #9251D9
triadic
#5154D9 #D95154 #54D951
tetradic
#5154D9 #D95198 #D9D651 #51D992
square
#5154D9 #D95198 #D9D651 #51D992
split-complementary
#5154D9 #D99251 #98D951
monochromatic
#1F2290 #2A2EC2 #5154D9 #8385E4 #B5B7EF

Accessibility & contrast

On white

5.80
#5154D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5154D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154D9
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154D9#FFFFFF#000000##FFFFFF
##5154D91.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5154d9;
/* rgb */ color: rgb(81, 84, 217);
/* oklch */ color: oklch(52.4% 0.199 276.1);
Tailwind
colors: {
  custom: {
    50: '#9084e6',
    500: '#5154d9',
    950: '#000000',
  },
}
SCSS
$custom: #5154d9;
$custom-light: #9084e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5154d9",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 217
  },
  "hsl": {
    "h": 238.676,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52364,
    "c": 0.19888,
    "h": 276.1
  },
  "luminance": 0.131
}

Semantic roles & 50–950 ramp

primary
#5154D9
secondary
#DEDDA8
accent
#E341E7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154D9

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

Preview Lab → · Contrast checker → · Palette generator →

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