#5152BD#5152BD

#5152BD is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.8% C 0.164 H 278.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5152BD
RGBrgb(81, 82, 189)
HSLhsl(239, 45%, 53%)
HSVhsv(239, 57%, 74%)
CMYKcmyk(57.1%, 56.6%, 0%, 25.9%)
CIE-LABlab(40.34, 30.87, -56.67)
CIE-LCHlch(40.34, 64.53, 298.58°)
OKLaboklab(49.81% 0.0235 -0.1625)
OKLCHoklch(49.81% 0.164 278.2)
XYZxyz(15.5930, 11.4570, 49.5240)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152BD #BDBC51
analogous
#5188BD #5152BD #8651BD
triadic
#5152BD #BD5152 #52BD51
tetradic
#5152BD #BD5188 #BDBC51 #51BD86
square
#5152BD #BD5188 #BDBC51 #51BD86
split-complementary
#5152BD #BD8651 #88BD51
monochromatic
#29296B #393A97 #5152BD #7D7ECE #AAAADF

Accessibility & contrast

On white

6.38
#5152BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5152BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152BD
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152BD#FFFFFF#000000##FFFFFF
##5152BD1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C1
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#126B7F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5152bd;
/* rgb */ color: rgb(81, 82, 189);
/* oklch */ color: oklch(49.8% 0.164 278.2);
Tailwind
colors: {
  custom: {
    50: '#8b82d2',
    500: '#5152bd',
    950: '#000000',
  },
}
SCSS
$custom: #5152bd;
$custom-light: #8b82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5152bd",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 189
  },
  "hsl": {
    "h": 239.444,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49806,
    "c": 0.16418,
    "h": 278.2
  },
  "luminance": 0.11458
}

Semantic roles & 50–950 ramp

primary
#5152BD
secondary
#CCCC9E
accent
#D353D5
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5152BD

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

Preview Lab → · Contrast checker → · Palette generator →

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