#5152CB#5152CB

#5152CB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.9% C 0.183 H 277.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5152CB
RGBrgb(81, 82, 203)
HSLhsl(240, 54%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(60.1%, 59.6%, 0%, 20.4%)
CIE-LABlab(41.37, 35.47, -63.14)
CIE-LCHlch(41.37, 72.42, 299.33°)
OKLaboklab(50.89% 0.0234 -0.1815)
OKLCHoklch(50.89% 0.183 277.3)
XYZxyz(17.1867, 12.0944, 57.9171)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152CB #CBCA51
analogous
#518FCB #5152CB #8D51CB
triadic
#5152CB #CB5152 #52CB51
tetradic
#5152CB #CB518F #CBCA51 #51CB8D
square
#5152CB #CB518F #CBCA51 #51CB8D
split-complementary
#5152CB #CB8D51 #8FCB51
monochromatic
#25267C #3334AC #5152CB #8081D9 #AFB0E7

Accessibility & contrast

On white

6.14
#5152CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5152CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152CB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152CB#FFFFFF#000000##FFFFFF
##5152CB1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5152cb;
/* rgb */ color: rgb(81, 82, 203);
/* oklch */ color: oklch(50.9% 0.183 277.3);
Tailwind
colors: {
  custom: {
    50: '#8e83dc',
    500: '#5152cb',
    950: '#000000',
  },
}
SCSS
$custom: #5152cb;
$custom-light: #8e83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5152cb",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 239.508,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5089,
    "c": 0.18302,
    "h": 277.3
  },
  "luminance": 0.12096
}

Semantic roles & 50–950 ramp

primary
#5152CB
secondary
#D5D5A3
accent
#DC4ADD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5152CB

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

Preview Lab → · Contrast checker → · Palette generator →

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