#5154DA#5154DA

#5154DA is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.4% C 0.200 H 276.0°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5154DA
RGBrgb(81, 84, 218)
HSLhsl(239, 65%, 59%)
HSVhsv(239, 63%, 85%)
CMYKcmyk(62.8%, 61.5%, 0%, 14.5%)
CIE-LABlab(42.99, 39.19, -69.12)
CIE-LCHlch(42.99, 79.45, 299.55°)
OKLaboklab(52.45% 0.0211 -0.1991)
OKLCHoklch(52.45% 0.2 276)
XYZxyz(19.2144, 13.1504, 67.8418)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5154DA #DAD751
analogous
#5198DA #5154DA #9251DA
triadic
#5154DA #DA5154 #54DA51
tetradic
#5154DA #DA5198 #DAD751 #51DA92
square
#5154DA #DA5198 #DAD751 #51DA92
split-complementary
#5154DA #DA9251 #98DA51
monochromatic
#1F2192 #2A2DC4 #5154DA #8386E5 #B6B7EF

Accessibility & contrast

On white

5.78
#5154DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5154DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5154DA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5154DA#FFFFFF#000000##FFFFFF
##5154DA1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#0060D7
Tritanopia (blue-blind)
#00768F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5154da;
/* rgb */ color: rgb(81, 84, 218);
/* oklch */ color: oklch(52.4% 0.200 276.0);
Tailwind
colors: {
  custom: {
    50: '#9084e6',
    500: '#5154da',
    950: '#000000',
  },
}
SCSS
$custom: #5154da;
$custom-light: #9084e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5154da",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 218
  },
  "hsl": {
    "h": 238.686,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52445,
    "c": 0.20017,
    "h": 276
  },
  "luminance": 0.13152
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5154DA

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

Preview Lab → · Contrast checker → · Palette generator →

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