#51507A#51507A

#51507A is a mid, moderate blue. Relative luminance 0.089; OKLCH L 45.1% C 0.068 H 284.4°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#51507A
RGBrgb(81, 80, 122)
HSLhsl(241, 21%, 40%)
HSVhsv(241, 34%, 48%)
CMYKcmyk(33.6%, 34.4%, 0%, 52.2%)
CIE-LABlab(35.77, 11.08, -23.68)
CIE-LCHlch(35.77, 26.14, 295.08°)
OKLaboklab(45.06% 0.017 -0.066)
OKLCHoklch(45.06% 0.068 284.4)
XYZxyz(9.7739, 8.8915, 19.6099)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51507A #797A50
analogous
#50647A #51507A #66507A
triadic
#51507A #7A5150 #507A51
tetradic
#51507A #7A5064 #797A50 #507A66
square
#51507A #7A5064 #797A50 #507A66
split-complementary
#51507A #7A6650 #647A50
monochromatic
#202030 #383855 #51507A #6B6A9D #908FB5

Accessibility & contrast

On white

7.56
#51507A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#51507A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51507A
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51507A#FFFFFF#000000##FFFFFF
##51507A1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44557C
Deuteranopia (green-blind)
#425379
Tritanopia (blue-blind)
#47585F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #51507a;
/* rgb */ color: rgb(81, 80, 122);
/* oklch */ color: oklch(45.1% 0.068 284.4);
Tailwind
colors: {
  custom: {
    50: '#8381a0',
    500: '#51507a',
    950: '#000000',
  },
}
SCSS
$custom: #51507a;
$custom-light: #8381a0;
$custom-dark: #000000;
JSON
{
  "hex": "#51507a",
  "rgb": {
    "r": 81,
    "g": 80,
    "b": 122
  },
  "hsl": {
    "h": 241.429,
    "s": 20.792,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45055,
    "c": 0.06811,
    "h": 284.4
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#51507A
secondary
#A2A383
accent
#BD6ABB
background
#F8F7F9
surface
#EFEEF2
border
#CAC9CC
text
#0B0A0E
muted
#7C7C7E

Preview Lab

Preview with #51507A

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

Preview Lab → · Contrast checker → · Palette generator →

#51507A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva