#51538E#51538E

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

Color values

HEX#51538E
RGBrgb(81, 83, 142)
HSLhsl(238, 27%, 44%)
HSVhsv(238, 43%, 56%)
CMYKcmyk(43%, 41.5%, 0%, 44.3%)
CIE-LABlab(37.64, 15.13, -33.00)
CIE-LCHlch(37.64, 36.31, 294.63°)
OKLaboklab(46.82% 0.0174 -0.093)
OKLCHoklch(46.82% 0.095 280.6)
XYZxyz(11.3676, 9.8883, 26.8956)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51538E #8E8C51
analogous
#51718E #51538E #6D518E
triadic
#51538E #8E5153 #538E51
tetradic
#51538E #8E5171 #8E8C51 #518E6D
square
#51538E #8E5171 #8E8C51 #518E6D
split-complementary
#51538E #8E6D51 #718E51
monochromatic
#252540 #3B3C67 #51538E #6F71AD #9698C3

Accessibility & contrast

On white

7.05
#51538E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#51538E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51538E
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51538E#FFFFFF#000000##FFFFFF
##51538E1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5B90
Deuteranopia (green-blind)
#3A568D
Tritanopia (blue-blind)
#3E5F69
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #51538e;
/* rgb */ color: rgb(81, 83, 142);
/* oklch */ color: oklch(46.8% 0.095 280.6);
Tailwind
colors: {
  custom: {
    50: '#8583af',
    500: '#51538e',
    950: '#000000',
  },
}
SCSS
$custom: #51538e;
$custom-light: #8583af;
$custom-dark: #000000;
JSON
{
  "hex": "#51538e",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 142
  },
  "hsl": {
    "h": 238.033,
    "s": 27.354,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46822,
    "c": 0.09464,
    "h": 280.6
  },
  "luminance": 0.09889
}

Semantic roles & 50–950 ramp

primary
#51538E
secondary
#B0AF8B
accent
#C164C4
background
#F8F8FA
surface
#EFEFF4
border
#CACACE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #51538E

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

Preview Lab → · Contrast checker → · Palette generator →

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