#54518D#54518D

#54518D is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.6% C 0.096 H 284.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#54518D
RGBrgb(84, 81, 141)
HSLhsl(243, 27%, 44%)
HSVhsv(243, 43%, 55%)
CMYKcmyk(40.4%, 42.6%, 0%, 44.7%)
CIE-LABlab(37.28, 16.94, -32.94)
CIE-LCHlch(37.28, 37.04, 297.21°)
OKLaboklab(46.59% 0.0237 -0.0928)
OKLCHoklch(46.59% 0.096 284.3)
XYZxyz(11.4049, 9.6924, 26.4640)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54518D #8A8D51
analogous
#516C8D #54518D #72518D
triadic
#54518D #8D5451 #518D54
tetradic
#54518D #8D516C #8A8D51 #518D72
square
#54518D #8D516C #8A8D51 #518D72
split-complementary
#54518D #8D7251 #6C8D51
monochromatic
#26243F #3D3B66 #54518D #726FAC #9896C3

Accessibility & contrast

On white

7.15
#54518D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#54518D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54518D
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54518D#FFFFFF#000000##FFFFFF
##54518D1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A8F
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#445D68
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #54518d;
/* rgb */ color: rgb(84, 81, 141);
/* oklch */ color: oklch(46.6% 0.096 284.3);
Tailwind
colors: {
  custom: {
    50: '#8781ae',
    500: '#54518d',
    950: '#000000',
  },
}
SCSS
$custom: #54518d;
$custom-light: #8781ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54518d",
  "rgb": {
    "r": 84,
    "g": 81,
    "b": 141
  },
  "hsl": {
    "h": 243,
    "s": 27.027,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46594,
    "c": 0.09575,
    "h": 284.3
  },
  "luminance": 0.09693
}

Semantic roles & 50–950 ramp

primary
#54518D
secondary
#AEAF8A
accent
#C364BF
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0B0A10
muted
#7C7C7F

Preview Lab

Preview with #54518D

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

Preview Lab → · Contrast checker → · Palette generator →

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