#5153D5#5153D5

#5153D5 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.195 H 276.5°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5153D5
RGBrgb(81, 83, 213)
HSLhsl(239, 61%, 58%)
HSVhsv(239, 62%, 84%)
CMYKcmyk(62%, 61%, 0%, 16.5%)
CIE-LABlab(42.37, 38.15, -67.27)
CIE-LCHlch(42.37, 77.33, 299.56°)
OKLaboklab(51.87% 0.0221 -0.1936)
OKLCHoklch(51.87% 0.195 276.5)
XYZxyz(18.4929, 12.7385, 64.4221)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5153D5 #D5D351
analogous
#5195D5 #5153D5 #9151D5
triadic
#5153D5 #D55153 #53D551
tetradic
#5153D5 #D55195 #D5D351 #51D591
square
#5153D5 #D55195 #D5D351 #51D591
split-complementary
#5153D5 #D59151 #95D551
monochromatic
#21238A #2D2FBC #5153D5 #8284E1 #B4B4ED

Accessibility & contrast

On white

5.92
#5153D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5153D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5153D5
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5153D5#FFFFFF#000000##FFFFFF
##5153D51.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#005ED2
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5153d5;
/* rgb */ color: rgb(81, 83, 213);
/* oklch */ color: oklch(51.9% 0.195 276.5);
Tailwind
colors: {
  custom: {
    50: '#8f83e3',
    500: '#5153d5',
    950: '#000000',
  },
}
SCSS
$custom: #5153d5;
$custom-light: #8f83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5153d5",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 213
  },
  "hsl": {
    "h": 239.091,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51866,
    "c": 0.1949,
    "h": 276.5
  },
  "luminance": 0.1274
}

Semantic roles & 50–950 ramp

primary
#5153D5
secondary
#DBDBA6
accent
#E244E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5153D5

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

Preview Lab → · Contrast checker → · Palette generator →

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