#5151CD#5151CD

#5151CD is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.9% C 0.187 H 277.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5151CD
RGBrgb(81, 81, 205)
HSLhsl(240, 55%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(60.5%, 60.5%, 0%, 19.6%)
CIE-LABlab(41.28, 36.74, -64.44)
CIE-LCHlch(41.28, 74.18, 299.69°)
OKLaboklab(50.88% 0.0242 -0.1853)
OKLCHoklch(50.88% 0.187 277.4)
XYZxyz(17.3517, 12.0406, 59.1555)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151CD #CDCD51
analogous
#518FCD #5151CD #8F51CD
triadic
#5151CD #CD5151 #51CD51
tetradic
#5151CD #CD518F #CDCD51 #51CD8F
square
#5151CD #CD518F #CDCD51 #51CD8F
split-complementary
#5151CD #CD8F51 #8FCD51
monochromatic
#25257F #3232AF #5151CD #8181DB #B0B0E8

Accessibility & contrast

On white

6.16
#5151CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5151CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151CD
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151CD#FFFFFF#000000##FFFFFF
##5151CD1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#006F87
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5151cd;
/* rgb */ color: rgb(81, 81, 205);
/* oklch */ color: oklch(50.9% 0.187 277.4);
Tailwind
colors: {
  custom: {
    50: '#8e82dd',
    500: '#5151cd',
    950: '#000000',
  },
}
SCSS
$custom: #5151cd;
$custom-light: #8e82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5151cd",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 240,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50875,
    "c": 0.18691,
    "h": 277.4
  },
  "luminance": 0.12042
}

Semantic roles & 50–950 ramp

primary
#5151CD
secondary
#D7D7A3
accent
#DF49DF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5151CD

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

Preview Lab → · Contrast checker → · Palette generator →

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