#51559D#51559D

#51559D is a mid, moderate blue. Relative luminance 0.107; OKLCH L 48.2% C 0.114 H 278.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#51559D
RGBrgb(81, 85, 157)
HSLhsl(237, 32%, 47%)
HSVhsv(237, 48%, 62%)
CMYKcmyk(48.4%, 45.9%, 0%, 38.4%)
CIE-LABlab(39.04, 18.57, -39.84)
CIE-LCHlch(39.04, 43.95, 294.99°)
OKLaboklab(48.16% 0.0175 -0.113)
OKLCHoklch(48.16% 0.114 278.8)
XYZxyz(12.7258, 10.6800, 33.2826)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51559D #9D9951
analogous
#517B9D #51559D #73519D
triadic
#51559D #9D5155 #559D51
tetradic
#51559D #9D517B #9D9951 #519D73
square
#51559D #9D517B #9D9951 #519D73
split-complementary
#51559D #9D7351 #7B9D51
monochromatic
#27294C #3C3F75 #51559D #7477B7 #9C9FCC

Accessibility & contrast

On white

6.70
#51559D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#51559D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51559D
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51559D#FFFFFF#000000##FFFFFF
##51559D1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385FA0
Deuteranopia (green-blind)
#32599B
Tritanopia (blue-blind)
#356471
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #51559d;
/* rgb */ color: rgb(81, 85, 157);
/* oklch */ color: oklch(48.2% 0.114 278.8);
Tailwind
colors: {
  custom: {
    50: '#8784ba',
    500: '#51559d',
    950: '#000000',
  },
}
SCSS
$custom: #51559d;
$custom-light: #8784ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51559d",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 157
  },
  "hsl": {
    "h": 236.842,
    "s": 31.933,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4816,
    "c": 0.11432,
    "h": 278.8
  },
  "luminance": 0.10681
}

Semantic roles & 50–950 ramp

primary
#51559D
secondary
#B9B791
accent
#C360C8
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #51559D

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

Preview Lab → · Contrast checker → · Palette generator →

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