#5152CE#5152CE

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

Color values

HEX#5152CE
RGBrgb(81, 82, 206)
HSLhsl(240, 56%, 56%)
HSVhsv(240, 61%, 81%)
CMYKcmyk(60.7%, 60.2%, 0%, 19.2%)
CIE-LABlab(41.59, 36.46, -64.50)
CIE-LCHlch(41.59, 74.10, 299.48°)
OKLaboklab(51.13% 0.0233 -0.1855)
OKLCHoklch(51.13% 0.187 277.2)
XYZxyz(17.5476, 12.2388, 59.8182)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152CE #CECD51
analogous
#5191CE #5152CE #8F51CE
triadic
#5152CE #CE5152 #52CE51
tetradic
#5152CE #CE5191 #CECD51 #51CE8F
square
#5152CE #CE5191 #CECD51 #51CE8F
split-complementary
#5152CE #CE8F51 #91CE51
monochromatic
#242580 #3233B0 #5152CE #8181DB #B1B1E9

Accessibility & contrast

On white

6.09
#5152CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5152CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152CE
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152CE#FFFFFF#000000##FFFFFF
##5152CE1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5152ce;
/* rgb */ color: rgb(81, 82, 206);
/* oklch */ color: oklch(51.1% 0.187 277.2);
Tailwind
colors: {
  custom: {
    50: '#8e83de',
    500: '#5152ce',
    950: '#000000',
  },
}
SCSS
$custom: #5152ce;
$custom-light: #8e83de;
$custom-dark: #000000;
JSON
{
  "hex": "#5152ce",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 239.52,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51129,
    "c": 0.18698,
    "h": 277.2
  },
  "luminance": 0.1224
}

Semantic roles & 50–950 ramp

primary
#5152CE
secondary
#D7D7A4
accent
#DE48DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5152CE

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

Preview Lab → · Contrast checker → · Palette generator →

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