#5151CF#5151CF

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

Color values

HEX#5151CF
RGBrgb(81, 81, 207)
HSLhsl(240, 57%, 56%)
HSVhsv(240, 61%, 81%)
CMYKcmyk(60.9%, 60.9%, 0%, 18.8%)
CIE-LABlab(41.43, 37.40, -65.34)
CIE-LCHlch(41.43, 75.28, 299.79°)
OKLaboklab(51.04% 0.0241 -0.188)
OKLCHoklch(51.04% 0.19 277.3)
XYZxyz(17.5946, 12.1378, 60.4350)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151CF #CFCF51
analogous
#5190CF #5151CF #9051CF
triadic
#5151CF #CF5151 #51CF51
tetradic
#5151CF #CF5190 #CFCF51 #51CF90
square
#5151CF #CF5190 #CFCF51 #51CF90
split-complementary
#5151CF #CF9051 #90CF51
monochromatic
#242482 #3131B2 #5151CF #8181DC #B1B1E9

Accessibility & contrast

On white

6.13
#5151CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5151CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151CF
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151CF#FFFFFF#000000##FFFFFF
##5151CF1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5151cf;
/* rgb */ color: rgb(81, 81, 207);
/* oklch */ color: oklch(51.0% 0.190 277.3);
Tailwind
colors: {
  custom: {
    50: '#8e82df',
    500: '#5151cf',
    950: '#000000',
  },
}
SCSS
$custom: #5151cf;
$custom-light: #8e82df;
$custom-dark: #000000;
JSON
{
  "hex": "#5151cf",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 240,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51036,
    "c": 0.18952,
    "h": 277.3
  },
  "luminance": 0.12139
}

Semantic roles & 50–950 ramp

primary
#5151CF
secondary
#D8D8A4
accent
#E048E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5151CF

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

Preview Lab → · Contrast checker → · Palette generator →

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