#5152CF#5152CF

#5152CF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.2% C 0.188 H 277.1°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5152CF
RGBrgb(81, 82, 207)
HSLhsl(240, 57%, 56%)
HSVhsv(240, 61%, 81%)
CMYKcmyk(60.9%, 60.4%, 0%, 18.8%)
CIE-LABlab(41.67, 36.79, -64.96)
CIE-LCHlch(41.67, 74.65, 299.53°)
OKLaboklab(51.21% 0.0233 -0.1868)
OKLCHoklch(51.21% 0.188 277.1)
XYZxyz(17.6695, 12.2875, 60.4600)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152CF #CFCE51
analogous
#5191CF #5152CF #8F51CF
triadic
#5152CF #CF5152 #52CF51
tetradic
#5152CF #CF5191 #CFCE51 #51CF8F
square
#5152CF #CF5191 #CFCE51 #51CF8F
split-complementary
#5152CF #CF8F51 #91CF51
monochromatic
#242582 #3132B2 #5152CF #8182DC #B1B1E9

Accessibility & contrast

On white

6.07
#5152CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5152CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152CF
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152CF#FFFFFF#000000##FFFFFF
##5152CF1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005DCD
Tritanopia (blue-blind)
#007189
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5152cf;
/* rgb */ color: rgb(81, 82, 207);
/* oklch */ color: oklch(51.2% 0.188 277.1);
Tailwind
colors: {
  custom: {
    50: '#8e83df',
    500: '#5152cf',
    950: '#000000',
  },
}
SCSS
$custom: #5152cf;
$custom-light: #8e83df;
$custom-dark: #000000;
JSON
{
  "hex": "#5152cf",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 239.524,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51209,
    "c": 0.18829,
    "h": 277.1
  },
  "luminance": 0.12289
}

Semantic roles & 50–950 ramp

primary
#5152CF
secondary
#D8D7A4
accent
#DF48E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5152CF

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

Preview Lab → · Contrast checker → · Palette generator →

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