#5152CD#5152CD

#5152CD is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.0% C 0.186 H 277.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5152CD
RGBrgb(81, 82, 205)
HSLhsl(240, 55%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(60.5%, 60%, 0%, 19.6%)
CIE-LABlab(41.52, 36.13, -64.05)
CIE-LCHlch(41.52, 73.54, 299.43°)
OKLaboklab(51.05% 0.0233 -0.1842)
OKLCHoklch(51.05% 0.186 277.2)
XYZxyz(17.4265, 12.1904, 59.1804)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152CD #CDCC51
analogous
#5190CD #5152CD #8E51CD
triadic
#5152CD #CD5152 #52CD51
tetradic
#5152CD #CD5190 #CDCC51 #51CD8E
square
#5152CD #CD5190 #CDCC51 #51CD8E
split-complementary
#5152CD #CD8E51 #90CD51
monochromatic
#25257F #3233AF #5152CD #8181DB #B0B1E8

Accessibility & contrast

On white

6.11
#5152CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5152CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152CD
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152CD#FFFFFF#000000##FFFFFF
##5152CD1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5152cd;
/* rgb */ color: rgb(81, 82, 205);
/* oklch */ color: oklch(51.0% 0.186 277.2);
Tailwind
colors: {
  custom: {
    50: '#8e83dd',
    500: '#5152cd',
    950: '#000000',
  },
}
SCSS
$custom: #5152cd;
$custom-light: #8e83dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5152cd",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 239.516,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51049,
    "c": 0.18566,
    "h": 277.2
  },
  "luminance": 0.12192
}

Semantic roles & 50–950 ramp

primary
#5152CD
secondary
#D7D6A3
accent
#DD49DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5152CD

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

Preview Lab → · Contrast checker → · Palette generator →

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