#5152C8#5152C8

#5152C8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.7% C 0.179 H 277.5°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5152C8
RGBrgb(81, 82, 200)
HSLhsl(239, 52%, 55%)
HSVhsv(239, 60%, 78%)
CMYKcmyk(59.5%, 59%, 0%, 21.6%)
CIE-LABlab(41.14, 34.49, -61.77)
CIE-LCHlch(41.14, 70.75, 299.18°)
OKLaboklab(50.65% 0.0235 -0.1775)
OKLCHoklch(50.65% 0.179 277.5)
XYZxyz(16.8326, 11.9528, 56.0525)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152C8 #C8C751
analogous
#518DC8 #5152C8 #8C51C8
triadic
#5152C8 #C85152 #52C851
tetradic
#5152C8 #C8518D #C8C751 #51C88C
square
#5152C8 #C8518D #C8C751 #51C88C
split-complementary
#5152C8 #C88C51 #8DC851
monochromatic
#262779 #3536A7 #5152C8 #8080D7 #AEAEE5

Accessibility & contrast

On white

6.19
#5152C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5152C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152C8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152C8#FFFFFF#000000##FFFFFF
##5152C81.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#005CC6
Tritanopia (blue-blind)
#006E85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5152c8;
/* rgb */ color: rgb(81, 82, 200);
/* oklch */ color: oklch(50.7% 0.179 277.5);
Tailwind
colors: {
  custom: {
    50: '#8d83da',
    500: '#5152c8',
    950: '#000000',
  },
}
SCSS
$custom: #5152c8;
$custom-light: #8d83da;
$custom-dark: #000000;
JSON
{
  "hex": "#5152c8",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 239.496,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50653,
    "c": 0.17903,
    "h": 277.5
  },
  "luminance": 0.11954
}

Semantic roles & 50–950 ramp

primary
#5152C8
secondary
#D3D3A1
accent
#DA4CDB
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5152C8

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

Preview Lab → · Contrast checker → · Palette generator →

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