#5151B5#5151B5

#5151B5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.0% C 0.154 H 279.1°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5151B5
RGBrgb(81, 81, 181)
HSLhsl(240, 40%, 51%)
HSVhsv(240, 55%, 71%)
CMYKcmyk(55.2%, 55.2%, 0%, 29%)
CIE-LABlab(39.53, 28.88, -53.29)
CIE-LCHlch(39.53, 60.61, 298.45°)
OKLaboklab(49.02% 0.0243 -0.1526)
OKLCHoklch(49.02% 0.154 279.1)
XYZxyz(14.6736, 10.9694, 45.0512)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151B5 #B5B551
analogous
#5183B5 #5151B5 #8351B5
triadic
#5151B5 #B55151 #51B551
tetradic
#5151B5 #B55183 #B5B551 #51B583
square
#5151B5 #B55183 #B5B551 #51B583
split-complementary
#5151B5 #B58351 #83B551
monochromatic
#2A2A62 #3C3C8D #5151B5 #7C7CC7 #A7A7DA

Accessibility & contrast

On white

6.57
#5151B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5151B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151B5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151B5#FFFFFF#000000##FFFFFF
##5151B51.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E61B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#20687B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5151b5;
/* rgb */ color: rgb(81, 81, 181);
/* oklch */ color: oklch(49.0% 0.154 279.1);
Tailwind
colors: {
  custom: {
    50: '#8a82cc',
    500: '#5151b5',
    950: '#000000',
  },
}
SCSS
$custom: #5151b5;
$custom-light: #8a82cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5151b5",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 181
  },
  "hsl": {
    "h": 240,
    "s": 40.323,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49024,
    "c": 0.15449,
    "h": 279.1
  },
  "luminance": 0.1097
}

Semantic roles & 50–950 ramp

primary
#5151B5
secondary
#C7C79B
accent
#D058D0
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5151B5

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

Preview Lab → · Contrast checker → · Palette generator →

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