#51517E#51517E

#51517E is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.5% C 0.073 H 283.1°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#51517E
RGBrgb(81, 81, 126)
HSLhsl(240, 22%, 41%)
HSVhsv(240, 36%, 49%)
CMYKcmyk(35.7%, 35.7%, 0%, 50.6%)
CIE-LABlab(36.25, 11.60, -25.40)
CIE-LCHlch(36.25, 27.93, 294.55°)
OKLaboklab(45.49% 0.0165 -0.0709)
OKLCHoklch(45.49% 0.073 283.1)
XYZxyz(10.1006, 9.1402, 20.9667)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51517E #7E7E51
analogous
#51677E #51517E #67517E
triadic
#51517E #7E5151 #517E51
tetradic
#51517E #7E5167 #7E7E51 #517E67
square
#51517E #7E5167 #7E7E51 #517E67
split-complementary
#51517E #7E6751 #677E51
monochromatic
#212133 #393959 #51517E #6C6CA0 #9191B8

Accessibility & contrast

On white

7.43
#51517E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#51517E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51517E
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51517E#FFFFFF#000000##FFFFFF
##51517E1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435780
Deuteranopia (green-blind)
#41547D
Tritanopia (blue-blind)
#455961
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #51517e;
/* rgb */ color: rgb(81, 81, 126);
/* oklch */ color: oklch(45.5% 0.073 283.1);
Tailwind
colors: {
  custom: {
    50: '#8381a3',
    500: '#51517e',
    950: '#000000',
  },
}
SCSS
$custom: #51517e;
$custom-light: #8381a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51517e",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 21.739,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45487,
    "c": 0.07284,
    "h": 283.1
  },
  "luminance": 0.09141
}

Semantic roles & 50–950 ramp

primary
#51517E
secondary
#A5A585
accent
#BE6ABE
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A0F
muted
#7C7C7F

Preview Lab

Preview with #51517E

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

Preview Lab → · Contrast checker → · Palette generator →

#51517E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva