#5153D2#5153D2

#5153D2 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.6% C 0.191 H 276.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5153D2
RGBrgb(81, 83, 210)
HSLhsl(239, 59%, 57%)
HSVhsv(239, 61%, 82%)
CMYKcmyk(61.4%, 60.5%, 0%, 17.6%)
CIE-LABlab(42.14, 37.16, -65.92)
CIE-LCHlch(42.14, 75.68, 299.41°)
OKLaboklab(51.62% 0.0223 -0.1897)
OKLCHoklch(51.62% 0.191 276.7)
XYZxyz(18.1157, 12.5876, 62.4353)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5153D2 #D2D051
analogous
#5193D2 #5153D2 #9051D2
triadic
#5153D2 #D25153 #53D251
tetradic
#5153D2 #D25193 #D2D051 #51D290
square
#5153D2 #D25193 #D2D051 #51D290
split-complementary
#5153D2 #D29051 #93D251
monochromatic
#232486 #2F31B7 #5153D2 #8283DF #B2B3EB

Accessibility & contrast

On white

5.97
#5153D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5153D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5153D2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5153D2#FFFFFF#000000##FFFFFF
##5153D21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5153d2;
/* rgb */ color: rgb(81, 83, 210);
/* oklch */ color: oklch(51.6% 0.191 276.7);
Tailwind
colors: {
  custom: {
    50: '#8f83e1',
    500: '#5153d2',
    950: '#000000',
  },
}
SCSS
$custom: #5153d2;
$custom-light: #8f83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5153d2",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 210
  },
  "hsl": {
    "h": 239.07,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51624,
    "c": 0.19099,
    "h": 276.7
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

primary
#5153D2
secondary
#DAD9A5
accent
#E046E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5153D2

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

Preview Lab → · Contrast checker → · Palette generator →

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