#5152BF#5152BF

#5152BF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.0% C 0.167 H 278.1°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5152BF
RGBrgb(81, 82, 191)
HSLhsl(239, 46%, 53%)
HSVhsv(239, 58%, 75%)
CMYKcmyk(57.6%, 57.1%, 0%, 25.1%)
CIE-LABlab(40.48, 31.53, -57.61)
CIE-LCHlch(40.48, 65.67, 298.69°)
OKLaboklab(49.96% 0.0235 -0.1652)
OKLCHoklch(49.96% 0.167 278.1)
XYZxyz(15.8116, 11.5444, 50.6752)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152BF #BFBE51
analogous
#5189BF #5152BF #8751BF
triadic
#5152BF #BF5152 #52BF51
tetradic
#5152BF #BF5189 #BFBE51 #51BF87
square
#5152BF #BF5189 #BFBE51 #51BF87
split-complementary
#5152BF #BF8751 #89BF51
monochromatic
#28296D #393A9A #5152BF #7E7ECF #AAABE0

Accessibility & contrast

On white

6.35
#5152BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5152BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152BF
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152BF#FFFFFF#000000##FFFFFF
##5152BF1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#0C6C80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5152bf;
/* rgb */ color: rgb(81, 82, 191);
/* oklch */ color: oklch(50.0% 0.167 278.1);
Tailwind
colors: {
  custom: {
    50: '#8c82d3',
    500: '#5152bf',
    950: '#000000',
  },
}
SCSS
$custom: #5152bf;
$custom-light: #8c82d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5152bf",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 239.455,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49958,
    "c": 0.16691,
    "h": 278.1
  },
  "luminance": 0.11546
}

Semantic roles & 50–950 ramp

primary
#5152BF
secondary
#CECD9E
accent
#D552D6
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5152BF

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

Preview Lab → · Contrast checker → · Palette generator →

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