#5153CC#5153CC

#5153CC is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.1% C 0.183 H 277.0°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5153CC
RGBrgb(81, 83, 204)
HSLhsl(239, 55%, 56%)
HSVhsv(239, 60%, 80%)
CMYKcmyk(60.3%, 59.3%, 0%, 20%)
CIE-LABlab(41.68, 35.19, -63.21)
CIE-LCHlch(41.68, 72.34, 299.10°)
OKLaboklab(51.15% 0.0224 -0.1817)
OKLCHoklch(51.15% 0.183 277)
XYZxyz(17.3822, 12.2942, 58.5721)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5153CC #CCCA51
analogous
#5190CC #5153CC #8C51CC
triadic
#5153CC #CC5153 #53CC51
tetradic
#5153CC #CC5190 #CCCA51 #51CC8C
square
#5153CC #CC5190 #CCCA51 #51CC8C
split-complementary
#5153CC #CC8C51 #90CC51
monochromatic
#25267E #3335AD #5153CC #8082DA #B0B1E8

Accessibility & contrast

On white

6.07
#5153CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5153CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5153CC
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5153CC#FFFFFF#000000##FFFFFF
##5153CC1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5153cc;
/* rgb */ color: rgb(81, 83, 204);
/* oklch */ color: oklch(51.1% 0.183 277.0);
Tailwind
colors: {
  custom: {
    50: '#8e83dc',
    500: '#5153cc',
    950: '#000000',
  },
}
SCSS
$custom: #5153cc;
$custom-light: #8e83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5153cc",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 204
  },
  "hsl": {
    "h": 239.024,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51145,
    "c": 0.18309,
    "h": 277
  },
  "luminance": 0.12295
}

Semantic roles & 50–950 ramp

primary
#5153CC
secondary
#D6D5A3
accent
#DC4ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5153CC

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

Preview Lab → · Contrast checker → · Palette generator →

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