#5151D4#5151D4

#5151D4 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.196 H 277.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5151D4
RGBrgb(81, 81, 212)
HSLhsl(240, 60%, 57%)
HSVhsv(240, 62%, 83%)
CMYKcmyk(61.8%, 61.8%, 0%, 16.9%)
CIE-LABlab(41.82, 39.03, -67.58)
CIE-LCHlch(41.82, 78.04, 300.01°)
OKLaboklab(51.44% 0.0239 -0.1946)
OKLCHoklch(51.44% 0.196 277)
XYZxyz(18.2156, 12.3862, 63.7055)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151D4 #D4D451
analogous
#5193D4 #5151D4 #9351D4
triadic
#5151D4 #D45151 #51D451
tetradic
#5151D4 #D45193 #D4D451 #51D493
square
#5151D4 #D45193 #D4D451 #51D493
split-complementary
#5151D4 #D49351 #93D451
monochromatic
#222289 #2E2EBA #5151D4 #8282E0 #B3B3EC

Accessibility & contrast

On white

6.04
#5151D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5151D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151D4
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151D4#FFFFFF#000000##FFFFFF
##5151D41.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#005DD1
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5151d4;
/* rgb */ color: rgb(81, 81, 212);
/* oklch */ color: oklch(51.4% 0.196 277.0);
Tailwind
colors: {
  custom: {
    50: '#8f82e2',
    500: '#5151d4',
    950: '#000000',
  },
}
SCSS
$custom: #5151d4;
$custom-light: #8f82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5151d4",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 240,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51443,
    "c": 0.19603,
    "h": 277
  },
  "luminance": 0.12388
}

Semantic roles & 50–950 ramp

primary
#5151D4
secondary
#DBDBA6
accent
#E444E4
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A15
muted
#7E7C84

Preview Lab

Preview with #5151D4

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

Preview Lab → · Contrast checker → · Palette generator →

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