#5154D5#5154D5

#5154D5 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.0% C 0.194 H 276.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5154D5
RGBrgb(81, 84, 213)
HSLhsl(239, 61%, 58%)
HSVhsv(239, 62%, 84%)
CMYKcmyk(62%, 60.6%, 0%, 16.5%)
CIE-LABlab(42.60, 37.54, -66.89)
CIE-LCHlch(42.60, 76.70, 299.30°)
OKLaboklab(52.04% 0.0213 -0.1925)
OKLCHoklch(52.04% 0.194 276.3)
XYZxyz(18.5700, 12.8926, 64.4478)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154D5 #D5D251
analogous
#5196D5 #5154D5 #9051D5
triadic
#5154D5 #D55154 #54D551
tetradic
#5154D5 #D55196 #D5D251 #51D590
square
#5154D5 #D55196 #D5D251 #51D590
split-complementary
#5154D5 #D59051 #96D551
monochromatic
#21248A #2D31BC #5154D5 #8284E1 #B4B5ED

Accessibility & contrast

On white

5.87
#5154D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5154D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154D5
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154D5#FFFFFF#000000##FFFFFF
##5154D51.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#005FD2
Tritanopia (blue-blind)
#00748C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5154d5;
/* rgb */ color: rgb(81, 84, 213);
/* oklch */ color: oklch(52.0% 0.194 276.3);
Tailwind
colors: {
  custom: {
    50: '#8f84e3',
    500: '#5154d5',
    950: '#000000',
  },
}
SCSS
$custom: #5154d5;
$custom-light: #8f84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5154d5",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 213
  },
  "hsl": {
    "h": 238.636,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52039,
    "c": 0.19369,
    "h": 276.3
  },
  "luminance": 0.12894
}

Semantic roles & 50–950 ramp

primary
#5154D5
secondary
#DBDAA6
accent
#E144E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5154D5

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

Preview Lab → · Contrast checker → · Palette generator →

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