#51538C#51538C

#51538C is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.7% C 0.092 H 280.7°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#51538C
RGBrgb(81, 83, 140)
HSLhsl(238, 27%, 43%)
HSVhsv(238, 42%, 55%)
CMYKcmyk(42.1%, 40.7%, 0%, 45.1%)
CIE-LABlab(37.53, 14.52, -31.96)
CIE-LCHlch(37.53, 35.10, 294.43°)
OKLaboklab(46.7% 0.017 -0.09)
OKLCHoklch(46.7% 0.092 280.7)
XYZxyz(11.2188, 9.8288, 26.1119)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51538C #8C8A51
analogous
#51708C #51538C #6C518C
triadic
#51538C #8C5153 #538C51
tetradic
#51538C #8C5170 #8C8A51 #518C6C
square
#51538C #8C5170 #8C8A51 #518C6C
split-complementary
#51538C #8C6C51 #708C51
monochromatic
#24253E #3B3C65 #51538C #6F71AC #9597C2

Accessibility & contrast

On white

7.08
#51538C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#51538C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51538C
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51538C#FFFFFF#000000##FFFFFF
##51538C1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5B8E
Deuteranopia (green-blind)
#3C568B
Tritanopia (blue-blind)
#3F5E69
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #51538c;
/* rgb */ color: rgb(81, 83, 140);
/* oklch */ color: oklch(46.7% 0.092 280.7);
Tailwind
colors: {
  custom: {
    50: '#8583ae',
    500: '#51538c',
    950: '#000000',
  },
}
SCSS
$custom: #51538c;
$custom-light: #8583ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51538c",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 140
  },
  "hsl": {
    "h": 237.966,
    "s": 26.697,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46704,
    "c": 0.09156,
    "h": 280.7
  },
  "luminance": 0.09829
}

Semantic roles & 50–950 ramp

primary
#51538C
secondary
#AFAE8A
accent
#C065C3
background
#F8F8FA
surface
#EFEFF4
border
#CACACE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #51538C

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

Preview Lab → · Contrast checker → · Palette generator →

#51538C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva