#5152D1#5152D1

#5152D1 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.191 H 277.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5152D1
RGBrgb(81, 82, 209)
HSLhsl(240, 58%, 57%)
HSVhsv(240, 61%, 82%)
CMYKcmyk(61.2%, 60.8%, 0%, 18%)
CIE-LABlab(41.82, 37.44, -65.86)
CIE-LCHlch(41.82, 75.76, 299.62°)
OKLaboklab(51.37% 0.0232 -0.1895)
OKLCHoklch(51.37% 0.191 277)
XYZxyz(17.9155, 12.3860, 61.7559)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152D1 #D1D051
analogous
#5192D1 #5152D1 #9051D1
triadic
#5152D1 #D15152 #52D151
tetradic
#5152D1 #D15192 #D1D051 #51D190
square
#5152D1 #D15192 #D1D051 #51D190
split-complementary
#5152D1 #D19051 #92D151
monochromatic
#232485 #3031B5 #5152D1 #8182DE #B2B2EB

Accessibility & contrast

On white

6.04
#5152D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5152D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152D1
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152D1#FFFFFF#000000##FFFFFF
##5152D11.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D5
Deuteranopia (green-blind)
#005DCE
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5152d1;
/* rgb */ color: rgb(81, 82, 209);
/* oklch */ color: oklch(51.4% 0.191 277.0);
Tailwind
colors: {
  custom: {
    50: '#8f83e0',
    500: '#5152d1',
    950: '#000000',
  },
}
SCSS
$custom: #5152d1;
$custom-light: #8f83e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5152d1",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 239.531,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5137,
    "c": 0.19091,
    "h": 277
  },
  "luminance": 0.12387
}

Semantic roles & 50–950 ramp

primary
#5152D1
secondary
#D9D9A5
accent
#E046E1
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5152D1

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

Preview Lab → · Contrast checker → · Palette generator →

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