#5152D8#5152D8

#5152D8 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.200 H 276.6°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5152D8
RGBrgb(81, 82, 216)
HSLhsl(240, 63%, 58%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(62.5%, 62%, 0%, 15.3%)
CIE-LABlab(42.37, 39.74, -68.98)
CIE-LCHlch(42.37, 79.61, 299.94°)
OKLaboklab(51.94% 0.0228 -0.1987)
OKLCHoklch(51.94% 0.2 276.6)
XYZxyz(18.8013, 12.7403, 66.4208)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152D8 #D8D751
analogous
#5195D8 #5152D8 #9451D8
triadic
#5152D8 #D85152 #52D851
tetradic
#5152D8 #D85195 #D8D751 #51D894
square
#5152D8 #D85195 #D8D751 #51D894
split-complementary
#5152D8 #D89451 #95D851
monochromatic
#20218F #2B2CC1 #5152D8 #8384E3 #B5B5EE

Accessibility & contrast

On white

5.92
#5152D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5152D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152D8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152D8#FFFFFF#000000##FFFFFF
##5152D81.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#00748D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5152d8;
/* rgb */ color: rgb(81, 82, 216);
/* oklch */ color: oklch(51.9% 0.200 276.6);
Tailwind
colors: {
  custom: {
    50: '#9083e5',
    500: '#5152d8',
    950: '#000000',
  },
}
SCSS
$custom: #5152d8;
$custom-light: #9083e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5152d8",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 239.556,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51942,
    "c": 0.19999,
    "h": 276.6
  },
  "luminance": 0.12742
}

Semantic roles & 50–950 ramp

primary
#5152D8
secondary
#DDDDA8
accent
#E541E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5152D8

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

Preview Lab → · Contrast checker → · Palette generator →

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