#5152D3#5152D3

#5152D3 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.194 H 276.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5152D3
RGBrgb(81, 82, 211)
HSLhsl(240, 60%, 57%)
HSVhsv(240, 62%, 83%)
CMYKcmyk(61.6%, 61.1%, 0%, 17.3%)
CIE-LABlab(41.98, 38.10, -66.76)
CIE-LCHlch(41.98, 76.86, 299.72°)
OKLaboklab(51.53% 0.0231 -0.1921)
OKLCHoklch(51.53% 0.194 276.9)
XYZxyz(18.1647, 12.4856, 63.0681)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5152D3 #D3D251
analogous
#5193D3 #5152D3 #9151D3
triadic
#5152D3 #D35152 #52D351
tetradic
#5152D3 #D35193 #D3D251 #51D391
square
#5152D3 #D35193 #D3D251 #51D391
split-complementary
#5152D3 #D39151 #93D351
monochromatic
#222387 #2F30B8 #5152D3 #8283DF #B3B3EC

Accessibility & contrast

On white

6.00
#5152D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5152D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5152D3
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5152D3#FFFFFF#000000##FFFFFF
##5152D31.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5152d3;
/* rgb */ color: rgb(81, 82, 211);
/* oklch */ color: oklch(51.5% 0.194 276.9);
Tailwind
colors: {
  custom: {
    50: '#8f83e1',
    500: '#5152d3',
    950: '#000000',
  },
}
SCSS
$custom: #5152d3;
$custom-light: #8f83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5152d3",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 211
  },
  "hsl": {
    "h": 239.538,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51532,
    "c": 0.19352,
    "h": 276.9
  },
  "luminance": 0.12487
}

Semantic roles & 50–950 ramp

primary
#5152D3
secondary
#DADAA6
accent
#E245E3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5152D3

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

Preview Lab → · Contrast checker → · Palette generator →

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