#51528D#51528D

#51528D is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.6% C 0.095 H 281.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#51528D
RGBrgb(81, 82, 141)
HSLhsl(239, 27%, 44%)
HSVhsv(239, 43%, 55%)
CMYKcmyk(42.6%, 41.8%, 0%, 44.7%)
CIE-LABlab(37.31, 15.47, -32.92)
CIE-LCHlch(37.31, 36.37, 295.17°)
OKLaboklab(46.55% 0.0186 -0.0928)
OKLCHoklch(46.55% 0.095 281.3)
XYZxyz(11.2169, 9.7065, 26.4767)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51528D #8D8C51
analogous
#51708D #51528D #6E518D
triadic
#51528D #8D5152 #528D51
tetradic
#51528D #8D5170 #8D8C51 #518D6E
square
#51528D #8D5170 #8D8C51 #518D6E
split-complementary
#51528D #8D6E51 #708D51
monochromatic
#24253F #3B3B66 #51528D #6F70AC #9697C3

Accessibility & contrast

On white

7.14
#51528D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#51528D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51528D
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51528D#FFFFFF#000000##FFFFFF
##51528D1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5A8F
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#3F5E68
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #51528d;
/* rgb */ color: rgb(81, 82, 141);
/* oklch */ color: oklch(46.6% 0.095 281.3);
Tailwind
colors: {
  custom: {
    50: '#8582ae',
    500: '#51528d',
    950: '#000000',
  },
}
SCSS
$custom: #51528d;
$custom-light: #8582ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51528d",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 141
  },
  "hsl": {
    "h": 239,
    "s": 27.027,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46552,
    "c": 0.09461,
    "h": 281.3
  },
  "luminance": 0.09707
}

Semantic roles & 50–950 ramp

primary
#51528D
secondary
#AFAF8A
accent
#C264C3
background
#F8F7FA
surface
#EFEEF4
border
#CAC9CE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #51528D

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

Preview Lab → · Contrast checker → · Palette generator →

#51528D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva