#5151DA#5151DA

#5151DA is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 51.9% C 0.204 H 276.6°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5151DA
RGBrgb(81, 81, 218)
HSLhsl(240, 65%, 59%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(62.8%, 62.8%, 0%, 14.5%)
CIE-LABlab(42.30, 40.99, -70.24)
CIE-LCHlch(42.30, 81.33, 300.27°)
OKLaboklab(51.94% 0.0235 -0.2024)
OKLCHoklch(51.94% 0.204 276.6)
XYZxyz(18.9865, 12.6946, 67.7658)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151DA #DADA51
analogous
#5195DA #5151DA #9551DA
triadic
#5151DA #DA5151 #51DA51
tetradic
#5151DA #DA5195 #DADA51 #51DA95
square
#5151DA #DA5195 #DADA51 #51DA95
split-complementary
#5151DA #DA9551 #95DA51
monochromatic
#1F1F92 #2A2AC4 #5151DA #8383E5 #B6B6EF

Accessibility & contrast

On white

5.93
#5151DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5151DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151DA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151DA#FFFFFF#000000##FFFFFF
##5151DA1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005ED7
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5151da;
/* rgb */ color: rgb(81, 81, 218);
/* oklch */ color: oklch(51.9% 0.204 276.6);
Tailwind
colors: {
  custom: {
    50: '#9082e6',
    500: '#5151da',
    950: '#000000',
  },
}
SCSS
$custom: #5151da;
$custom-light: #9082e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5151da",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 240,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5194,
    "c": 0.20374,
    "h": 276.6
  },
  "luminance": 0.12696
}

Semantic roles & 50–950 ramp

primary
#5151DA
secondary
#DEDEA8
accent
#E840E8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151DA

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

Preview Lab → · Contrast checker → · Palette generator →

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