#51529D#51529D

#51529D is a mid, moderate blue. Relative luminance 0.102; OKLCH L 47.5% C 0.119 H 280.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#51529D
RGBrgb(81, 82, 157)
HSLhsl(239, 32%, 47%)
HSVhsv(239, 48%, 62%)
CMYKcmyk(48.4%, 47.8%, 0%, 38.4%)
CIE-LABlab(38.23, 20.48, -41.12)
CIE-LCHlch(38.23, 45.94, 296.48°)
OKLaboklab(47.55% 0.0212 -0.1168)
OKLCHoklch(47.55% 0.119 280.3)
XYZxyz(12.4946, 10.2176, 33.2056)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51529D #9D9C51
analogous
#51789D #51529D #76519D
triadic
#51529D #9D5152 #529D51
tetradic
#51529D #9D5178 #9D9C51 #519D76
square
#51529D #9D5178 #9D9C51 #519D76
split-complementary
#51529D #9D7651 #789D51
monochromatic
#27284C #3C3D75 #51529D #7475B7 #9C9DCC

Accessibility & contrast

On white

6.90
#51529D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#51529D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51529D
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51529D#FFFFFF#000000##FFFFFF
##51529D1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325DA0
Deuteranopia (green-blind)
#2D579B
Tritanopia (blue-blind)
#366270
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #51529d;
/* rgb */ color: rgb(81, 82, 157);
/* oklch */ color: oklch(47.5% 0.119 280.3);
Tailwind
colors: {
  custom: {
    50: '#8782ba',
    500: '#51529d',
    950: '#000000',
  },
}
SCSS
$custom: #51529d;
$custom-light: #8782ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51529d",
  "rgb": {
    "r": 81,
    "g": 82,
    "b": 157
  },
  "hsl": {
    "h": 239.211,
    "s": 31.933,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47549,
    "c": 0.11869,
    "h": 280.3
  },
  "luminance": 0.10218
}

Semantic roles & 50–950 ramp

primary
#51529D
secondary
#B9B991
accent
#C760C8
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #51529D

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

Preview Lab → · Contrast checker → · Palette generator →

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