#5157FF#5157FF

#5157FF is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 56.1% C 0.243 H 273.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5157FF
RGBrgb(81, 87, 255)
HSLhsl(238, 100%, 66%)
HSVhsv(238, 68%, 100%)
CMYKcmyk(68.2%, 65.9%, 0%, 0%)
CIE-LABlab(46.69, 49.49, -83.91)
CIE-LCHlch(46.69, 97.42, 300.53°)
OKLaboklab(56.08% 0.0161 -0.2424)
OKLCHoklch(56.08% 0.243 273.8)
XYZxyz(24.8455, 15.7834, 96.3255)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5157FF #FFF951
analogous
#51AEFF #5157FF #A251FF
triadic
#5157FF #FF5157 #57FF51
tetradic
#5157FF #FF51AE #FFF951 #51FFA2
square
#5157FF #FF51AE #FFF951 #51FFA2
split-complementary
#5157FF #FFA251 #AEFF51
monochromatic
#0007D6 #141CFF #5157FF #8E92FF #CBCDFF

Accessibility & contrast

On white

5.05
#5157FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5157FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5157FF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5157FF#FFFFFF#000000##FFFFFF
##5157FF1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#0067FC
Tritanopia (blue-blind)
#0084A4
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5157ff;
/* rgb */ color: rgb(81, 87, 255);
/* oklch */ color: oklch(56.1% 0.243 273.8);
Tailwind
colors: {
  custom: {
    50: '#9787ff',
    500: '#5157ff',
    950: '#000000',
  },
}
SCSS
$custom: #5157ff;
$custom-light: #9787ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5157ff",
  "rgb": {
    "r": 81,
    "g": 87,
    "b": 255
  },
  "hsl": {
    "h": 237.931,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.56081,
    "c": 0.24295,
    "h": 273.8
  },
  "luminance": 0.15786
}

Semantic roles & 50–950 ramp

primary
#5157FF
secondary
#F3F1B9
accent
#DE00E6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B18
muted
#7F7C86

Preview Lab

Preview with #5157FF

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

Preview Lab → · Contrast checker → · Palette generator →

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