#51549F#51549F

#51549F is a mid, moderate blue. Relative luminance 0.106; OKLCH L 48.1% C 0.119 H 279.2°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#51549F
RGBrgb(81, 84, 159)
HSLhsl(238, 33%, 47%)
HSVhsv(238, 49%, 62%)
CMYKcmyk(49.1%, 47.2%, 0%, 37.6%)
CIE-LABlab(38.89, 19.84, -41.27)
CIE-LCHlch(38.89, 45.80, 295.68°)
OKLaboklab(48.08% 0.019 -0.1172)
OKLCHoklch(48.08% 0.119 279.2)
XYZxyz(12.8198, 10.5925, 34.1632)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51549F #9F9C51
analogous
#517B9F #51549F #75519F
triadic
#51549F #9F5154 #549F51
tetradic
#51549F #9F517B #9F9C51 #519F75
square
#51549F #9F517B #9F9C51 #519F75
split-complementary
#51549F #9F7551 #7B9F51
monochromatic
#28294E #3C3F76 #51549F #7577B9 #9D9FCD

Accessibility & contrast

On white

6.73
#51549F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#51549F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #51549F
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51549F#FFFFFF#000000##FFFFFF
##51549F1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345FA2
Deuteranopia (green-blind)
#2E599D
Tritanopia (blue-blind)
#346472
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #51549f;
/* rgb */ color: rgb(81, 84, 159);
/* oklch */ color: oklch(48.1% 0.119 279.2);
Tailwind
colors: {
  custom: {
    50: '#8784bc',
    500: '#51549f',
    950: '#000000',
  },
}
SCSS
$custom: #51549f;
$custom-light: #8784bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51549f",
  "rgb": {
    "r": 81,
    "g": 84,
    "b": 159
  },
  "hsl": {
    "h": 237.692,
    "s": 32.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48084,
    "c": 0.11874,
    "h": 279.2
  },
  "luminance": 0.10593
}

Semantic roles & 50–950 ramp

primary
#51549F
secondary
#BAB992
accent
#C55FC9
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #51549F

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

Preview Lab → · Contrast checker → · Palette generator →

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