#5151B3#5151B3

#5151B3 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.152 H 279.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5151B3
RGBrgb(81, 81, 179)
HSLhsl(240, 39%, 51%)
HSVhsv(240, 55%, 70%)
CMYKcmyk(54.7%, 54.7%, 0%, 29.8%)
CIE-LABlab(39.39, 28.23, -52.34)
CIE-LCHlch(39.39, 59.46, 298.34°)
OKLaboklab(48.88% 0.0243 -0.1497)
OKLCHoklch(48.88% 0.152 279.2)
XYZxyz(14.4699, 10.8879, 43.9782)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151B3 #B3B351
analogous
#5182B3 #5151B3 #8251B3
triadic
#5151B3 #B35151 #51B351
tetradic
#5151B3 #B35182 #B3B351 #51B382
square
#5151B3 #B35182 #B3B351 #51B382
split-complementary
#5151B3 #B38251 #82B351
monochromatic
#2A2A60 #3C3C8A #5151B3 #7C7CC6 #A6A6D8

Accessibility & contrast

On white

6.61
#5151B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5151B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151B3
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151B3#FFFFFF#000000##FFFFFF
##5151B31.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B6
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#23677A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5151b3;
/* rgb */ color: rgb(81, 81, 179);
/* oklch */ color: oklch(48.9% 0.152 279.2);
Tailwind
colors: {
  custom: {
    50: '#8a82ca',
    500: '#5151b3',
    950: '#000000',
  },
}
SCSS
$custom: #5151b3;
$custom-light: #8a82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5151b3",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 240,
    "s": 39.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48877,
    "c": 0.1517,
    "h": 279.2
  },
  "luminance": 0.10889
}

Semantic roles & 50–950 ramp

primary
#5151B3
secondary
#C6C69A
accent
#CF59CF
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5151B3

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

Preview Lab → · Contrast checker → · Palette generator →

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