#5152CC#5152CC

#5152CC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.184 H 277.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5152CC
RGBrgb(81, 82, 204)
HSLhsl(240, 55%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(60.3%, 59.8%, 0%, 20%)
CIE-LABlab(41.44, 35.80, -63.60)
CIE-LCHlch(41.44, 72.98, 299.38°)
OKLaboklab(50.97% 0.0234 -0.1829)
OKLCHoklch(50.97% 0.184 277.3)
XYZxyz(17.3062, 12.1422, 58.5467)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152CC #CCCB51
analogous
#518FCC #5152CC #8D51CC
triadic
#5152CC #CC5152 #52CC51
tetradic
#5152CC #CC518F #CCCB51 #51CC8D
square
#5152CC #CC518F #CCCB51 #51CC8D
split-complementary
#5152CC #CC8D51 #8FCC51
monochromatic
#25267E #3334AD #5152CC #8081DA #B0B0E8

Accessibility & contrast

On white

6.12
#5152CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5152CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152CC
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152CC#FFFFFF#000000##FFFFFF
##5152CC1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5152cc;
/* rgb */ color: rgb(81, 82, 204);
/* oklch */ color: oklch(51.0% 0.184 277.3);
Tailwind
colors: {
  custom: {
    50: '#8e83dc',
    500: '#5152cc',
    950: '#000000',
  },
}
SCSS
$custom: #5152cc;
$custom-light: #8e83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5152cc",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 239.512,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50969,
    "c": 0.18434,
    "h": 277.3
  },
  "luminance": 0.12144
}

Semantic roles & 50–950 ramp

primary
#5152CC
secondary
#D6D5A3
accent
#DD4ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5152CC

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

Preview Lab → · Contrast checker → · Palette generator →

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