#5157DF#5157DF

#5157DF is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.4% C 0.203 H 275.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5157DF
RGBrgb(81, 87, 223)
HSLhsl(237, 69%, 60%)
HSVhsv(237, 64%, 87%)
CMYKcmyk(63.7%, 61%, 0%, 12.5%)
CIE-LABlab(44.08, 39.02, -70.19)
CIE-LCHlch(44.08, 80.31, 299.07°)
OKLaboklab(53.37% 0.0184 -0.2022)
OKLCHoklch(53.37% 0.203 275.2)
XYZxyz(20.1164, 13.8917, 71.4190)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157DF #DFD951
analogous
#519EDF #5157DF #9251DF
triadic
#5157DF #DF5157 #57DF51
tetradic
#5157DF #DF519E #DFD951 #51DF92
square
#5157DF #DF519E #DFD951 #51DF92
split-complementary
#5157DF #DF9251 #9EDF51
monochromatic
#1C2199 #262DCD #5157DF #8589E9 #B8BBF2

Accessibility & contrast

On white

5.56
#5157DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5157DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157DF
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157DF#FFFFFF#000000##FFFFFF
##5157DF1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE3
Deuteranopia (green-blind)
#0062DC
Tritanopia (blue-blind)
#007993
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5157df;
/* rgb */ color: rgb(81, 87, 223);
/* oklch */ color: oklch(53.4% 0.203 275.2);
Tailwind
colors: {
  custom: {
    50: '#9186ea',
    500: '#5157df',
    950: '#000000',
  },
}
SCSS
$custom: #5157df;
$custom-light: #9186ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5157df",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 223
  },
  "hsl": {
    "h": 237.465,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.53367,
    "c": 0.20303,
    "h": 275.2
  },
  "luminance": 0.13893
}

Semantic roles & 50–950 ramp

primary
#5157DF
secondary
#E1DFAA
accent
#E43CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5157DF

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

Preview Lab → · Contrast checker → · Palette generator →

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