#5153D7#5153D7

#5153D7 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.0% C 0.198 H 276.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#5153D7
RGBrgb(81, 83, 215)
HSLhsl(239, 63%, 58%)
HSVhsv(239, 62%, 84%)
CMYKcmyk(62.3%, 61.4%, 0%, 15.7%)
CIE-LABlab(42.52, 38.81, -68.16)
CIE-LCHlch(42.52, 78.43, 299.65°)
OKLaboklab(52.03% 0.0221 -0.1963)
OKLCHoklch(52.03% 0.198 276.4)
XYZxyz(18.7483, 12.8406, 65.7673)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5153D7 #D7D551
analogous
#5196D7 #5153D7 #9251D7
triadic
#5153D7 #D75153 #53D751
tetradic
#5153D7 #D75196 #D7D551 #51D792
square
#5153D7 #D75196 #D7D551 #51D792
split-complementary
#5153D7 #D79251 #96D751
monochromatic
#20228D #2C2EBF #5153D7 #8384E2 #B5B5EE

Accessibility & contrast

On white

5.88
#5153D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5153D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5153D7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5153D7#FFFFFF#000000##FFFFFF
##5153D71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#00748D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5153d7;
/* rgb */ color: rgb(81, 83, 215);
/* oklch */ color: oklch(52.0% 0.198 276.4);
Tailwind
colors: {
  custom: {
    50: '#9083e4',
    500: '#5153d7',
    950: '#000000',
  },
}
SCSS
$custom: #5153d7;
$custom-light: #9083e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5153d7",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 215
  },
  "hsl": {
    "h": 239.104,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52029,
    "c": 0.1975,
    "h": 276.4
  },
  "luminance": 0.12842
}

Semantic roles & 50–950 ramp

primary
#5153D7
secondary
#DDDCA7
accent
#E342E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5153D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5153D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva