#5152BC#5152BC

#5152BC is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.7% C 0.163 H 278.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5152BC
RGBrgb(81, 82, 188)
HSLhsl(239, 44%, 53%)
HSVhsv(239, 57%, 74%)
CMYKcmyk(56.9%, 56.4%, 0%, 26.3%)
CIE-LABlab(40.27, 30.54, -56.20)
CIE-LCHlch(40.27, 63.97, 298.52°)
OKLaboklab(49.73% 0.0235 -0.1611)
OKLCHoklch(49.73% 0.163 278.3)
XYZxyz(15.4849, 11.4137, 48.9543)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152BC #BCBB51
analogous
#5188BC #5152BC #8551BC
triadic
#5152BC #BC5152 #52BC51
tetradic
#5152BC #BC5188 #BCBB51 #51BC85
square
#5152BC #BC5188 #BCBB51 #51BC85
split-complementary
#5152BC #BC8551 #88BC51
monochromatic
#29296A #3A3B96 #5152BC #7D7ECD #A9AADE

Accessibility & contrast

On white

6.40
#5152BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5152BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152BC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152BC#FFFFFF#000000##FFFFFF
##5152BC1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#146B7F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5152bc;
/* rgb */ color: rgb(81, 82, 188);
/* oklch */ color: oklch(49.7% 0.163 278.3);
Tailwind
colors: {
  custom: {
    50: '#8b82d1',
    500: '#5152bc',
    950: '#000000',
  },
}
SCSS
$custom: #5152bc;
$custom-light: #8b82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5152bc",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 239.439,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49731,
    "c": 0.16281,
    "h": 278.3
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

primary
#5152BC
secondary
#CCCB9D
accent
#D354D4
background
#F9F8FC
surface
#F1EFF9
border
#CBCAD2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5152BC

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

Preview Lab → · Contrast checker → · Palette generator →

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