#515178#515178

#515178 is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.2% C 0.063 H 283.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#515178
RGBrgb(81, 81, 120)
HSLhsl(240, 19%, 39%)
HSVhsv(240, 33%, 47%)
CMYKcmyk(32.5%, 32.5%, 0%, 52.9%)
CIE-LABlab(35.97, 9.87, -22.14)
CIE-LCHlch(35.97, 24.25, 294.03°)
OKLaboklab(45.17% 0.0149 -0.0616)
OKLCHoklch(45.17% 0.063 283.6)
XYZxyz(9.7250, 8.9900, 18.9885)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515178 #787851
analogous
#516578 #515178 #655178
triadic
#515178 #785151 #517851
tetradic
#515178 #785165 #787851 #517865
square
#515178 #785165 #787851 #517865
split-complementary
#515178 #786551 #657851
monochromatic
#20202F #383853 #515178 #6B6B9B #9090B4

Accessibility & contrast

On white

7.51
#515178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#515178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #515178
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515178#FFFFFF#000000##FFFFFF
##5151781.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46567A
Deuteranopia (green-blind)
#445377
Tritanopia (blue-blind)
#47585F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #515178;
/* rgb */ color: rgb(81, 81, 120);
/* oklch */ color: oklch(45.2% 0.063 283.6);
Tailwind
colors: {
  custom: {
    50: '#83819f',
    500: '#515178',
    950: '#000000',
  },
}
SCSS
$custom: #515178;
$custom-light: #83819f;
$custom-dark: #000000;
JSON
{
  "hex": "#515178",
  "rgb": {
    "r": 81,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 19.403,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4517,
    "c": 0.06333,
    "h": 283.6
  },
  "luminance": 0.0899
}

Semantic roles & 50–950 ramp

primary
#515178
secondary
#A1A184
accent
#BC6CBC
background
#F8F7F9
surface
#EFEEF2
border
#CAC9CC
text
#0B0A0E
muted
#7C7C7E

Preview Lab

Preview with #515178

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

Preview Lab → · Contrast checker → · Palette generator →

#515178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva