#5152DA#5152DA

#5152DA is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.1% C 0.203 H 276.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#5152DA
RGBrgb(81, 82, 218)
HSLhsl(240, 65%, 59%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(62.8%, 62.4%, 0%, 14.5%)
CIE-LABlab(42.53, 40.39, -69.87)
CIE-LCHlch(42.53, 80.70, 300.03°)
OKLaboklab(52.11% 0.0227 -0.2013)
OKLCHoklch(52.11% 0.203 276.4)
XYZxyz(19.0614, 12.8443, 67.7908)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152DA #DAD951
analogous
#5196DA #5152DA #9451DA
triadic
#5152DA #DA5152 #52DA51
tetradic
#5152DA #DA5196 #DAD951 #51DA94
square
#5152DA #DA5196 #DAD951 #51DA94
split-complementary
#5152DA #DA9451 #96DA51
monochromatic
#1F2092 #2A2BC4 #5152DA #8384E5 #B6B6EF

Accessibility & contrast

On white

5.88
#5152DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5152DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152DA
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152DA#FFFFFF#000000##FFFFFF
##5152DA1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005ED7
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5152da;
/* rgb */ color: rgb(81, 82, 218);
/* oklch */ color: oklch(52.1% 0.203 276.4);
Tailwind
colors: {
  custom: {
    50: '#9083e6',
    500: '#5152da',
    950: '#000000',
  },
}
SCSS
$custom: #5152da;
$custom-light: #9083e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5152da",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 218
  },
  "hsl": {
    "h": 239.562,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.20256,
    "h": 276.4
  },
  "luminance": 0.12846
}

Semantic roles & 50–950 ramp

primary
#5152DA
secondary
#DEDEA8
accent
#E740E8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152DA

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

Preview Lab → · Contrast checker → · Palette generator →

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