#51489A#51489A

#51489A is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.129 H 285.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#51489A
RGBrgb(81, 72, 154)
HSLhsl(247, 36%, 44%)
HSVhsv(247, 53%, 60%)
CMYKcmyk(47.4%, 53.2%, 0%, 39.6%)
CIE-LABlab(35.43, 25.90, -43.79)
CIE-LCHlch(35.43, 50.88, 300.60°)
OKLaboklab(45.39% 0.0334 -0.1247)
OKLCHoklch(45.39% 0.129 285)
XYZxyz(11.5417, 8.7166, 31.6399)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51489A #919A48
analogous
#48689A #51489A #7A489A
triadic
#51489A #9A5148 #489A51
tetradic
#51489A #9A4868 #919A48 #489A7A
square
#51489A #9A4868 #919A48 #489A7A
split-complementary
#51489A #9A7A48 #689A48
monochromatic
#252147 #3B3570 #51489A #7067B8 #9791CC

Accessibility & contrast

On white

7.65
#51489A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#51489A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51489A
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51489A#FFFFFF#000000##FFFFFF
##51489A1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20569D
Deuteranopia (green-blind)
#1D5198
Tritanopia (blue-blind)
#395A6A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #51489a;
/* rgb */ color: rgb(81, 72, 154);
/* oklch */ color: oklch(45.4% 0.129 285.0);
Tailwind
colors: {
  custom: {
    50: '#877bb8',
    500: '#51489a',
    950: '#000000',
  },
}
SCSS
$custom: #51489a;
$custom-light: #877bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#51489a",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 154
  },
  "hsl": {
    "h": 246.585,
    "s": 36.283,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45385,
    "c": 0.12908,
    "h": 285
  },
  "luminance": 0.08717
}

Semantic roles & 50–950 ramp

primary
#51489A
secondary
#B2B786
accent
#CC5CC0
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #51489A

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

Preview Lab → · Contrast checker → · Palette generator →

#51489A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva