#5157DC#5157DC

#5157DC is a mid, vivid blue. Relative luminance 0.137; OKLCH L 53.1% C 0.199 H 275.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5157DC
RGBrgb(81, 87, 220)
HSLhsl(237, 67%, 59%)
HSVhsv(237, 63%, 86%)
CMYKcmyk(63.2%, 60.5%, 0%, 13.7%)
CIE-LABlab(43.85, 38.03, -68.86)
CIE-LCHlch(43.85, 78.66, 298.91°)
OKLaboklab(53.12% 0.0185 -0.1983)
OKLCHoklch(53.12% 0.199 275.3)
XYZxyz(19.7156, 13.7314, 69.3077)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157DC #DCD651
analogous
#519DDC #5157DC #9151DC
triadic
#5157DC #DC5157 #57DC51
tetradic
#5157DC #DC519D #DCD651 #51DC91
square
#5157DC #DC519D #DCD651 #51DC91
split-complementary
#5157DC #DC9151 #9DDC51
monochromatic
#1E2395 #282FC8 #5157DC #8488E6 #B7B9F0

Accessibility & contrast

On white

5.61
#5157DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5157DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157DC
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157DC#FFFFFF#000000##FFFFFF
##5157DC1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#0062D9
Tritanopia (blue-blind)
#007891
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5157dc;
/* rgb */ color: rgb(81, 87, 220);
/* oklch */ color: oklch(53.1% 0.199 275.3);
Tailwind
colors: {
  custom: {
    50: '#9086e8',
    500: '#5157dc',
    950: '#000000',
  },
}
SCSS
$custom: #5157dc;
$custom-light: #9086e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5157dc",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 237.41,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53124,
    "c": 0.19915,
    "h": 275.3
  },
  "luminance": 0.13733
}

Semantic roles & 50–950 ramp

primary
#5157DC
secondary
#E0DDA9
accent
#E23EE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5157DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5157DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva