#54519F#54519F

#54519F is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.123 H 282.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#54519F
RGBrgb(84, 81, 159)
HSLhsl(242, 33%, 47%)
HSVhsv(242, 49%, 62%)
CMYKcmyk(47.2%, 49.1%, 0%, 37.6%)
CIE-LABlab(38.33, 22.48, -42.15)
CIE-LCHlch(38.33, 47.77, 298.08°)
OKLaboklab(47.72% 0.0264 -0.1197)
OKLCHoklch(47.72% 0.123 282.4)
XYZxyz(12.8547, 10.2723, 34.0996)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54519F #9C9F51
analogous
#51759F #54519F #7B519F
triadic
#54519F #9F5451 #519F54
tetradic
#54519F #9F5175 #9C9F51 #519F7B
square
#54519F #9F5175 #9C9F51 #519F7B
split-complementary
#54519F #9F7B51 #759F51
monochromatic
#29284E #3F3C76 #54519F #7775B9 #9F9DCD

Accessibility & contrast

On white

6.87
#54519F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#54519F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #54519F
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54519F#FFFFFF#000000##FFFFFF
##54519F1.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305DA2
Deuteranopia (green-blind)
#2B589D
Tritanopia (blue-blind)
#3A6170
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #54519f;
/* rgb */ color: rgb(84, 81, 159);
/* oklch */ color: oklch(47.7% 0.123 282.4);
Tailwind
colors: {
  custom: {
    50: '#8981bc',
    500: '#54519f',
    950: '#000000',
  },
}
SCSS
$custom: #54519f;
$custom-light: #8981bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54519f",
  "rgb": {
    "r": 84,
    "g": 81,
    "b": 159
  },
  "hsl": {
    "h": 242.308,
    "s": 32.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47722,
    "c": 0.12261,
    "h": 282.4
  },
  "luminance": 0.10273
}

Semantic roles & 50–950 ramp

primary
#54519F
secondary
#B9BA92
accent
#C95FC5
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #54519F

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

Preview Lab → · Contrast checker → · Palette generator →

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