#51549B#51549B

#51549B is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.8% C 0.113 H 279.4°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#51549B
RGBrgb(81, 84, 155)
HSLhsl(238, 31%, 46%)
HSVhsv(238, 48%, 61%)
CMYKcmyk(47.7%, 45.8%, 0%, 39.2%)
CIE-LABlab(38.65, 18.57, -39.25)
CIE-LCHlch(38.65, 43.42, 295.32°)
OKLaboklab(47.83% 0.0184 -0.1113)
OKLCHoklch(47.83% 0.113 279.4)
XYZxyz(12.4783, 10.4559, 32.3647)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51549B #9B9851
analogous
#51799B #51549B #73519B
triadic
#51549B #9B5154 #549B51
tetradic
#51549B #9B5179 #9B9851 #519B73
square
#51549B #9B5179 #9B9851 #519B73
split-complementary
#51549B #9B7351 #799B51
monochromatic
#27284B #3C3E73 #51549B #7376B6 #9B9DCB

Accessibility & contrast

On white

6.79
#51549B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#51549B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51549B
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51549B#FFFFFF#000000##FFFFFF
##51549B1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375E9E
Deuteranopia (green-blind)
#325899
Tritanopia (blue-blind)
#376370
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #51549b;
/* rgb */ color: rgb(81, 84, 155);
/* oklch */ color: oklch(47.8% 0.113 279.4);
Tailwind
colors: {
  custom: {
    50: '#8684b9',
    500: '#51549b',
    950: '#000000',
  },
}
SCSS
$custom: #51549b;
$custom-light: #8684b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51549b",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 155
  },
  "hsl": {
    "h": 237.568,
    "s": 31.356,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47828,
    "c": 0.1128,
    "h": 279.4
  },
  "luminance": 0.10457
}

Semantic roles & 50–950 ramp

primary
#51549B
secondary
#B8B690
accent
#C360C8
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0B0A11
muted
#7C7C80

Preview Lab

Preview with #51549B

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

Preview Lab → · Contrast checker → · Palette generator →

#51549B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva