#5152D2#5152D2

#5152D2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.5% C 0.192 H 276.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5152D2
RGBrgb(81, 82, 210)
HSLhsl(240, 59%, 57%)
HSVhsv(240, 61%, 82%)
CMYKcmyk(61.4%, 61%, 0%, 17.6%)
CIE-LABlab(41.90, 37.77, -66.31)
CIE-LCHlch(41.90, 76.31, 299.67°)
OKLaboklab(51.45% 0.0231 -0.1908)
OKLCHoklch(51.45% 0.192 276.9)
XYZxyz(18.0397, 12.4356, 62.4099)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152D2 #D2D151
analogous
#5193D2 #5152D2 #9151D2
triadic
#5152D2 #D25152 #52D251
tetradic
#5152D2 #D25193 #D2D151 #51D291
square
#5152D2 #D25193 #D2D151 #51D291
split-complementary
#5152D2 #D29151 #93D251
monochromatic
#232386 #2F30B7 #5152D2 #8282DF #B2B3EB

Accessibility & contrast

On white

6.02
#5152D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5152D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152D2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152D2#FFFFFF#000000##FFFFFF
##5152D21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5152d2;
/* rgb */ color: rgb(81, 82, 210);
/* oklch */ color: oklch(51.5% 0.192 276.9);
Tailwind
colors: {
  custom: {
    50: '#8f83e1',
    500: '#5152d2',
    950: '#000000',
  },
}
SCSS
$custom: #5152d2;
$custom-light: #8f83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5152d2",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 239.535,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51451,
    "c": 0.19222,
    "h": 276.9
  },
  "luminance": 0.12437
}

Semantic roles & 50–950 ramp

primary
#5152D2
secondary
#DAD9A5
accent
#E146E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5152D2

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

Preview Lab → · Contrast checker → · Palette generator →

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