#5151D3#5151D3

#5151D3 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.4% C 0.195 H 277.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5151D3
RGBrgb(81, 81, 211)
HSLhsl(240, 60%, 57%)
HSVhsv(240, 62%, 83%)
CMYKcmyk(61.6%, 61.6%, 0%, 17.3%)
CIE-LABlab(41.75, 38.71, -67.13)
CIE-LCHlch(41.75, 77.49, 299.97°)
OKLaboklab(51.36% 0.024 -0.1933)
OKLCHoklch(51.36% 0.195 277.1)
XYZxyz(18.0898, 12.3359, 63.0432)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151D3 #D3D351
analogous
#5192D3 #5151D3 #9251D3
triadic
#5151D3 #D35151 #51D351
tetradic
#5151D3 #D35192 #D3D351 #51D392
square
#5151D3 #D35192 #D3D351 #51D392
split-complementary
#5151D3 #D39251 #92D351
monochromatic
#222287 #2F2FB8 #5151D3 #8282DF #B3B3EC

Accessibility & contrast

On white

6.06
#5151D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5151D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151D3
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151D3#FFFFFF#000000##FFFFFF
##5151D31.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#00718A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5151d3;
/* rgb */ color: rgb(81, 81, 211);
/* oklch */ color: oklch(51.4% 0.195 277.1);
Tailwind
colors: {
  custom: {
    50: '#8f82e1',
    500: '#5151d3',
    950: '#000000',
  },
}
SCSS
$custom: #5151d3;
$custom-light: #8f82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5151d3",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 240,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51361,
    "c": 0.19474,
    "h": 277.1
  },
  "luminance": 0.12337
}

Semantic roles & 50–950 ramp

primary
#5151D3
secondary
#DADAA6
accent
#E345E3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5151D3

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

Preview Lab → · Contrast checker → · Palette generator →

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