#5156FF#5156FF

#5156FF is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.9% C 0.244 H 273.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5156FF
RGBrgb(81, 86, 255)
HSLhsl(238, 100%, 66%)
HSVhsv(238, 68%, 100%)
CMYKcmyk(68.2%, 66.3%, 0%, 0%)
CIE-LABlab(46.48, 50.06, -84.26)
CIE-LCHlch(46.48, 98.01, 300.72°)
OKLaboklab(55.93% 0.0167 -0.2434)
OKLCHoklch(55.93% 0.244 273.9)
XYZxyz(24.7651, 15.6226, 96.2987)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156FF #FFFA51
analogous
#51ADFF #5156FF #A351FF
triadic
#5156FF #FF5156 #56FF51
tetradic
#5156FF #FF51AD #FFFA51 #51FFA3
square
#5156FF #FF51AD #FFFA51 #51FFA3
split-complementary
#5156FF #FFA351 #ADFF51
monochromatic
#0006D6 #141BFF #5156FF #8E91FF #CBCDFF

Accessibility & contrast

On white

5.09
#5156FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5156FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156FF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156FF#FFFFFF#000000##FFFFFF
##5156FF1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076FF
Deuteranopia (green-blind)
#0066FC
Tritanopia (blue-blind)
#0083A3
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5156ff;
/* rgb */ color: rgb(81, 86, 255);
/* oklch */ color: oklch(55.9% 0.244 273.9);
Tailwind
colors: {
  custom: {
    50: '#9786ff',
    500: '#5156ff',
    950: '#000000',
  },
}
SCSS
$custom: #5156ff;
$custom-light: #9786ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5156ff",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 255
  },
  "hsl": {
    "h": 238.276,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.55926,
    "c": 0.24402,
    "h": 273.9
  },
  "luminance": 0.15625
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5156FF

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

Preview Lab → · Contrast checker → · Palette generator →

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