#5151B0#5151B0

#5151B0 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.147 H 279.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5151B0
RGBrgb(81, 81, 176)
HSLhsl(240, 38%, 50%)
HSVhsv(240, 54%, 69%)
CMYKcmyk(54%, 54%, 0%, 31%)
CIE-LABlab(39.19, 27.25, -50.90)
CIE-LCHlch(39.19, 57.73, 298.16°)
OKLaboklab(48.66% 0.0241 -0.1455)
OKLCHoklch(48.66% 0.148 279.4)
XYZxyz(14.1698, 10.7679, 42.3976)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151B0 #B0B051
analogous
#5180B0 #5151B0 #8051B0
triadic
#5151B0 #B05151 #51B051
tetradic
#5151B0 #B05180 #B0B051 #51B080
square
#5151B0 #B05180 #B0B051 #51B080
split-complementary
#5151B0 #B08051 #80B051
monochromatic
#2A2A5D #3D3D87 #5151B0 #7B7BC3 #A5A5D6

Accessibility & contrast

On white

6.66
#5151B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5151B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151B0
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151B0#FFFFFF#000000##FFFFFF
##5151B01.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A60B3
Deuteranopia (green-blind)
#0759AE
Tritanopia (blue-blind)
#266678
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5151b0;
/* rgb */ color: rgb(81, 81, 176);
/* oklch */ color: oklch(48.7% 0.147 279.4);
Tailwind
colors: {
  custom: {
    50: '#8982c8',
    500: '#5151b0',
    950: '#000000',
  },
}
SCSS
$custom: #5151b0;
$custom-light: #8982c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5151b0",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 176
  },
  "hsl": {
    "h": 240,
    "s": 37.549,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4866,
    "c": 0.1475,
    "h": 279.4
  },
  "luminance": 0.10769
}

Semantic roles & 50–950 ramp

primary
#5151B0
secondary
#C4C499
accent
#CE5ACE
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #5151B0

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

Preview Lab → · Contrast checker → · Palette generator →

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