#51538D#51538D

#51538D is a mid, moderate blue. Relative luminance 0.099; OKLCH L 46.8% C 0.093 H 280.7°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#51538D
RGBrgb(81, 83, 141)
HSLhsl(238, 27%, 44%)
HSVhsv(238, 43%, 55%)
CMYKcmyk(42.6%, 41.1%, 0%, 44.7%)
CIE-LABlab(37.59, 14.83, -32.48)
CIE-LCHlch(37.59, 35.71, 294.53°)
OKLaboklab(46.76% 0.0172 -0.0915)
OKLCHoklch(46.76% 0.093 280.7)
XYZxyz(11.2929, 9.8585, 26.5020)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51538D #8D8B51
analogous
#51718D #51538D #6D518D
triadic
#51538D #8D5153 #538D51
tetradic
#51538D #8D5171 #8D8B51 #518D6D
square
#51538D #8D5171 #8D8B51 #518D6D
split-complementary
#51538D #8D6D51 #718D51
monochromatic
#24253F #3B3C66 #51538D #6F71AC #9697C3

Accessibility & contrast

On white

7.07
#51538D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51538D
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51538D#FFFFFF#000000##FFFFFF
##51538D1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5B8F
Deuteranopia (green-blind)
#3B568C
Tritanopia (blue-blind)
#3F5F69
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #51538d;
/* rgb */ color: rgb(81, 83, 141);
/* oklch */ color: oklch(46.8% 0.093 280.7);
Tailwind
colors: {
  custom: {
    50: '#8583ae',
    500: '#51538d',
    950: '#000000',
  },
}
SCSS
$custom: #51538d;
$custom-light: #8583ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51538d",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 141
  },
  "hsl": {
    "h": 238,
    "s": 27.027,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46763,
    "c": 0.0931,
    "h": 280.7
  },
  "luminance": 0.09859
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51538D

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

Preview Lab → · Contrast checker → · Palette generator →

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