#5153E5#5153E5

#5153E5 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.2% C 0.215 H 275.6°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5153E5
RGBrgb(81, 83, 229)
HSLhsl(239, 74%, 61%)
HSVhsv(239, 65%, 90%)
CMYKcmyk(64.6%, 63.8%, 0%, 10.2%)
CIE-LABlab(43.64, 43.39, -74.31)
CIE-LCHlch(43.64, 86.05, 300.28°)
OKLaboklab(53.2% 0.0212 -0.2143)
OKLCHoklch(53.2% 0.215 275.6)
XYZxyz(20.6248, 13.5912, 75.6500)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5153E5 #E5E351
analogous
#519DE5 #5153E5 #9951E5
triadic
#5153E5 #E55153 #53E551
tetradic
#5153E5 #E5519D #E5E351 #51E599
square
#5153E5 #E5519D #E5E351 #51E599
split-complementary
#5153E5 #E59951 #9DE551
monochromatic
#181AA3 #2023D8 #5153E5 #8688ED #BBBCF5

Accessibility & contrast

On white

5.65
#5153E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5153E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5153E5
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5153E5#FFFFFF#000000##FFFFFF
##5153E51.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#007994
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5153e5;
/* rgb */ color: rgb(81, 83, 229);
/* oklch */ color: oklch(53.2% 0.215 275.6);
Tailwind
colors: {
  custom: {
    50: '#9284ee',
    500: '#5153e5',
    950: '#000000',
  },
}
SCSS
$custom: #5153e5;
$custom-light: #9284ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5153e5",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 229
  },
  "hsl": {
    "h": 239.189,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53196,
    "c": 0.21535,
    "h": 275.6
  },
  "luminance": 0.13593
}

Semantic roles & 50–950 ramp

primary
#5153E5
secondary
#E5E4AD
accent
#D30FD6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5153E5

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

Preview Lab → · Contrast checker → · Palette generator →

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