#51538F#51538F

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

Color values

HEX#51538F
RGBrgb(81, 83, 143)
HSLhsl(238, 28%, 44%)
HSVhsv(238, 43%, 56%)
CMYKcmyk(43.4%, 42%, 0%, 43.9%)
CIE-LABlab(37.70, 15.44, -33.52)
CIE-LCHlch(37.70, 36.91, 294.73°)
OKLaboklab(46.88% 0.0176 -0.0945)
OKLCHoklch(46.88% 0.096 280.6)
XYZxyz(11.4431, 9.9185, 27.2928)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51538F #8F8D51
analogous
#51728F #51538F #6E518F
triadic
#51538F #8F5153 #538F51
tetradic
#51538F #8F5172 #8F8D51 #518F6E
square
#51538F #8F5172 #8F8D51 #518F6E
split-complementary
#51538F #8F6E51 #728F51
monochromatic
#252641 #3B3C68 #51538F #6F71AE #9798C4

Accessibility & contrast

On white

7.04
#51538F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51538F
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51538F#FFFFFF#000000##FFFFFF
##51538F1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5B91
Deuteranopia (green-blind)
#3A578E
Tritanopia (blue-blind)
#3E5F6A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #51538f;
/* rgb */ color: rgb(81, 83, 143);
/* oklch */ color: oklch(46.9% 0.096 280.6);
Tailwind
colors: {
  custom: {
    50: '#8583b0',
    500: '#51538f',
    950: '#000000',
  },
}
SCSS
$custom: #51538f;
$custom-light: #8583b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51538f",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 143
  },
  "hsl": {
    "h": 238.065,
    "s": 27.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46881,
    "c": 0.09616,
    "h": 280.6
  },
  "luminance": 0.09919
}

Semantic roles & 50–950 ramp

primary
#51538F
secondary
#B1B08B
accent
#C164C4
background
#F8F8FA
surface
#EFEFF5
border
#CACACF
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #51538F

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

Preview Lab → · Contrast checker → · Palette generator →

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