#5151CB#5151CB

#5151CB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.7% C 0.184 H 277.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5151CB
RGBrgb(81, 81, 203)
HSLhsl(240, 54%, 56%)
HSVhsv(240, 60%, 80%)
CMYKcmyk(60.1%, 60.1%, 0%, 20.4%)
CIE-LABlab(41.13, 36.09, -63.53)
CIE-LCHlch(41.13, 73.06, 299.60°)
OKLaboklab(50.72% 0.0243 -0.1827)
OKLCHoklch(50.72% 0.184 277.6)
XYZxyz(17.1118, 11.9447, 57.8922)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151CB #CBCB51
analogous
#518ECB #5151CB #8E51CB
triadic
#5151CB #CB5151 #51CB51
tetradic
#5151CB #CB518E #CBCB51 #51CB8E
square
#5151CB #CB518E #CBCB51 #51CB8E
split-complementary
#5151CB #CB8E51 #8ECB51
monochromatic
#25257C #3333AC #5151CB #8080D9 #AFAFE7

Accessibility & contrast

On white

6.20
#5151CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5151CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151CB
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151CB#FFFFFF#000000##FFFFFF
##5151CB1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5151cb;
/* rgb */ color: rgb(81, 81, 203);
/* oklch */ color: oklch(50.7% 0.184 277.6);
Tailwind
colors: {
  custom: {
    50: '#8e82dc',
    500: '#5151cb',
    950: '#000000',
  },
}
SCSS
$custom: #5151cb;
$custom-light: #8e82dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5151cb",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 240,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50715,
    "c": 0.18427,
    "h": 277.6
  },
  "luminance": 0.11946
}

Semantic roles & 50–950 ramp

primary
#5151CB
secondary
#D5D5A3
accent
#DD4ADD
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #5151CB

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

Preview Lab → · Contrast checker → · Palette generator →

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