#5157DD#5157DD

#5157DD is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.2% C 0.200 H 275.3°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5157DD
RGBrgb(81, 87, 221)
HSLhsl(237, 67%, 59%)
HSVhsv(237, 63%, 87%)
CMYKcmyk(63.3%, 60.6%, 0%, 13.3%)
CIE-LABlab(43.92, 38.36, -69.31)
CIE-LCHlch(43.92, 79.21, 298.96°)
OKLaboklab(53.21% 0.0185 -0.1996)
OKLCHoklch(53.21% 0.2 275.3)
XYZxyz(19.8484, 13.7845, 70.0073)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157DD #DDD751
analogous
#519DDD #5157DD #9151DD
triadic
#5157DD #DD5157 #57DD51
tetradic
#5157DD #DD519D #DDD751 #51DD91
square
#5157DD #DD519D #DDD751 #51DD91
split-complementary
#5157DD #DD9151 #9DDD51
monochromatic
#1D2396 #272EC9 #5157DD #8488E7 #B7BAF1

Accessibility & contrast

On white

5.59
#5157DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5157DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157DD
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157DD#FFFFFF#000000##FFFFFF
##5157DD1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE1
Deuteranopia (green-blind)
#0062DA
Tritanopia (blue-blind)
#007892
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5157dd;
/* rgb */ color: rgb(81, 87, 221);
/* oklch */ color: oklch(53.2% 0.200 275.3);
Tailwind
colors: {
  custom: {
    50: '#9086e9',
    500: '#5157dd',
    950: '#000000',
  },
}
SCSS
$custom: #5157dd;
$custom-light: #9086e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5157dd",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 221
  },
  "hsl": {
    "h": 237.429,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53205,
    "c": 0.20045,
    "h": 275.3
  },
  "luminance": 0.13786
}

Semantic roles & 50–950 ramp

primary
#5157DD
secondary
#E0DEAA
accent
#E33EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5157DD

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

Preview Lab → · Contrast checker → · Palette generator →

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