#5152C2#5152C2

#5152C2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.171 H 277.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5152C2
RGBrgb(81, 82, 194)
HSLhsl(239, 48%, 54%)
HSVhsv(239, 58%, 76%)
CMYKcmyk(58.2%, 57.7%, 0%, 23.9%)
CIE-LABlab(40.70, 32.52, -59.00)
CIE-LCHlch(40.70, 67.37, 298.86°)
OKLaboklab(50.19% 0.0235 -0.1693)
OKLCHoklch(50.19% 0.171 277.9)
XYZxyz(16.1451, 11.6778, 52.4317)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152C2 #C2C151
analogous
#518BC2 #5152C2 #8951C2
triadic
#5152C2 #C25152 #52C251
tetradic
#5152C2 #C2518B #C2C151 #51C289
square
#5152C2 #C2518B #C2C151 #51C289
split-complementary
#5152C2 #C28951 #8BC251
monochromatic
#282871 #37389E #5152C2 #7E7FD2 #ACACE2

Accessibility & contrast

On white

6.30
#5152C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5152C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152C2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152C2#FFFFFF#000000##FFFFFF
##5152C21.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#016D82
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5152c2;
/* rgb */ color: rgb(81, 82, 194);
/* oklch */ color: oklch(50.2% 0.171 277.9);
Tailwind
colors: {
  custom: {
    50: '#8c82d5',
    500: '#5152c2',
    950: '#000000',
  },
}
SCSS
$custom: #5152c2;
$custom-light: #8c82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5152c2",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 239.469,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50187,
    "c": 0.17097,
    "h": 277.9
  },
  "luminance": 0.11679
}

Semantic roles & 50–950 ramp

primary
#5152C2
secondary
#D0CF9F
accent
#D650D8
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5152C2

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

Preview Lab → · Contrast checker → · Palette generator →

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