#5151D9#5151D9

#5151D9 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.9% C 0.202 H 276.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5151D9
RGBrgb(81, 81, 217)
HSLhsl(240, 64%, 58%)
HSVhsv(240, 63%, 85%)
CMYKcmyk(62.7%, 62.7%, 0%, 14.9%)
CIE-LABlab(42.22, 40.67, -69.80)
CIE-LCHlch(42.22, 80.78, 300.23°)
OKLaboklab(51.86% 0.0236 -0.2011)
OKLCHoklch(51.86% 0.202 276.7)
XYZxyz(18.8561, 12.6424, 67.0787)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5151D9 #D9D951
analogous
#5195D9 #5151D9 #9551D9
triadic
#5151D9 #D95151 #51D951
tetradic
#5151D9 #D95195 #D9D951 #51D995
square
#5151D9 #D95195 #D9D951 #51D995
split-complementary
#5151D9 #D99551 #95D951
monochromatic
#1F1F90 #2A2AC2 #5151D9 #8383E4 #B5B5EF

Accessibility & contrast

On white

5.95
#5151D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5151D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5151D9
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5151D9#FFFFFF#000000##FFFFFF
##5151D91.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#005ED6
Tritanopia (blue-blind)
#00738D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5151d9;
/* rgb */ color: rgb(81, 81, 217);
/* oklch */ color: oklch(51.9% 0.202 276.7);
Tailwind
colors: {
  custom: {
    50: '#9082e6',
    500: '#5151d9',
    950: '#000000',
  },
}
SCSS
$custom: #5151d9;
$custom-light: #9082e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5151d9",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 240,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51857,
    "c": 0.20247,
    "h": 276.7
  },
  "luminance": 0.12644
}

Semantic roles & 50–950 ramp

primary
#5151D9
secondary
#DEDEA8
accent
#E741E7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5151D9

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

Preview Lab → · Contrast checker → · Palette generator →

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