#5151CE#5151CE

#5151CE is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.0% C 0.188 H 277.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5151CE
RGBrgb(81, 81, 206)
HSLhsl(240, 56%, 56%)
HSVhsv(240, 61%, 81%)
CMYKcmyk(60.7%, 60.7%, 0%, 19.2%)
CIE-LABlab(41.36, 37.07, -64.89)
CIE-LCHlch(41.36, 74.73, 299.74°)
OKLaboklab(50.96% 0.0242 -0.1867)
OKLCHoklch(50.96% 0.188 277.4)
XYZxyz(17.4728, 12.0891, 59.7932)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151CE #CECE51
analogous
#5190CE #5151CE #9051CE
triadic
#5151CE #CE5151 #51CE51
tetradic
#5151CE #CE5190 #CECE51 #51CE90
square
#5151CE #CE5190 #CECE51 #51CE90
split-complementary
#5151CE #CE9051 #90CE51
monochromatic
#242480 #3232B0 #5151CE #8181DB #B1B1E9

Accessibility & contrast

On white

6.14
#5151CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5151CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151CE
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151CE#FFFFFF#000000##FFFFFF
##5151CE1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5151ce;
/* rgb */ color: rgb(81, 81, 206);
/* oklch */ color: oklch(51.0% 0.188 277.4);
Tailwind
colors: {
  custom: {
    50: '#8e82de',
    500: '#5151ce',
    950: '#000000',
  },
}
SCSS
$custom: #5151ce;
$custom-light: #8e82de;
$custom-dark: #000000;
JSON
{
  "hex": "#5151ce",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 240,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50955,
    "c": 0.18822,
    "h": 277.4
  },
  "luminance": 0.1209
}

Semantic roles & 50–950 ramp

primary
#5151CE
secondary
#D7D7A4
accent
#DF48DF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5151CE

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

Preview Lab → · Contrast checker → · Palette generator →

#5151CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva