#5151B4#5151B4

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

Color values

HEX#5151B4
RGBrgb(81, 81, 180)
HSLhsl(240, 40%, 51%)
HSVhsv(240, 55%, 71%)
CMYKcmyk(55%, 55%, 0%, 29.4%)
CIE-LABlab(39.46, 28.55, -52.82)
CIE-LCHlch(39.46, 60.04, 298.40°)
OKLaboklab(48.95% 0.0243 -0.1511)
OKLCHoklch(48.95% 0.153 279.1)
XYZxyz(14.5714, 10.9285, 44.5128)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151B4 #B4B451
analogous
#5182B4 #5151B4 #8251B4
triadic
#5151B4 #B45151 #51B451
tetradic
#5151B4 #B45182 #B4B451 #51B482
square
#5151B4 #B45182 #B4B451 #51B482
split-complementary
#5151B4 #B48251 #82B451
monochromatic
#2A2A61 #3C3C8C #5151B4 #7C7CC6 #A7A7D9

Accessibility & contrast

On white

6.59
#5151B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5151B4
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151B4#FFFFFF#000000##FFFFFF
##5151B41.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1161B7
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#21687A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5151b4;
/* rgb */ color: rgb(81, 81, 180);
/* oklch */ color: oklch(49.0% 0.153 279.1);
Tailwind
colors: {
  custom: {
    50: '#8a82cb',
    500: '#5151b4',
    950: '#000000',
  },
}
SCSS
$custom: #5151b4;
$custom-light: #8a82cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5151b4",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 240,
    "s": 39.759,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48951,
    "c": 0.15309,
    "h": 279.1
  },
  "luminance": 0.10929
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5151B4

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

Preview Lab → · Contrast checker → · Palette generator →

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