#5152D9#5152D9

#5152D9 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.0% C 0.201 H 276.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5152D9
RGBrgb(81, 82, 217)
HSLhsl(240, 64%, 58%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(62.7%, 62.2%, 0%, 14.9%)
CIE-LABlab(42.45, 40.07, -69.43)
CIE-LCHlch(42.45, 80.16, 299.99°)
OKLaboklab(52.02% 0.0228 -0.2)
OKLCHoklch(52.02% 0.201 276.5)
XYZxyz(18.9309, 12.7921, 67.1037)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152D9 #D9D851
analogous
#5196D9 #5152D9 #9451D9
triadic
#5152D9 #D95152 #52D951
tetradic
#5152D9 #D95196 #D9D851 #51D994
square
#5152D9 #D95196 #D9D851 #51D994
split-complementary
#5152D9 #D99451 #96D951
monochromatic
#1F2090 #2A2CC2 #5152D9 #8384E4 #B5B6EF

Accessibility & contrast

On white

5.90
#5152D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5152D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152D9
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152D9#FFFFFF#000000##FFFFFF
##5152D91.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5152d9;
/* rgb */ color: rgb(81, 82, 217);
/* oklch */ color: oklch(52.0% 0.201 276.5);
Tailwind
colors: {
  custom: {
    50: '#9083e6',
    500: '#5152d9',
    950: '#000000',
  },
}
SCSS
$custom: #5152d9;
$custom-light: #9083e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5152d9",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 239.559,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52024,
    "c": 0.20127,
    "h": 276.5
  },
  "luminance": 0.12794
}

Semantic roles & 50–950 ramp

primary
#5152D9
secondary
#DEDDA8
accent
#E641E7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152D9

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

Preview Lab → · Contrast checker → · Palette generator →

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