#54397D#54397D

#54397D is a dark, moderate violet. Relative luminance 0.063; OKLCH L 40.9% C 0.112 H 299.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#54397D
RGBrgb(84, 57, 125)
HSLhsl(264, 37%, 36%)
HSVhsv(264, 54%, 49%)
CMYKcmyk(32.8%, 54.4%, 0%, 51%)
CIE-LABlab(30.14, 27.50, -34.42)
CIE-LCHlch(30.14, 44.06, 308.62°)
OKLaboklab(40.92% 0.0556 -0.0971)
OKLCHoklch(40.92% 0.112 299.8)
XYZxyz(8.8201, 6.2917, 20.1478)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54397D #627D39
analogous
#39407D #54397D #76397D
triadic
#54397D #7D5439 #397D54
tetradic
#54397D #7D3940 #627D39 #397D76
square
#54397D #7D3940 #627D39 #397D76
split-complementary
#54397D #7D7639 #407D39
monochromatic
#1C1329 #382653 #54397D #704CA7 #9072BF

Accessibility & contrast

On white

9.30
#54397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#54397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54397D
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54397D#FFFFFF#000000##FFFFFF
##54397D1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#28467B
Tritanopia (blue-blind)
#4C4655
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #54397d;
/* rgb */ color: rgb(84, 57, 125);
/* oklch */ color: oklch(40.9% 0.112 299.8);
Tailwind
colors: {
  custom: {
    50: '#8770a3',
    500: '#54397d',
    950: '#000000',
  },
}
SCSS
$custom: #54397d;
$custom-light: #8770a3;
$custom-dark: #000000;
JSON
{
  "hex": "#54397d",
  "rgb": {
    "r": 84,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 263.824,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40915,
    "c": 0.11191,
    "h": 299.8
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

primary
#54397D
secondary
#8FA86A
accent
#CD5AA0
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #54397D

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

Preview Lab → · Contrast checker → · Palette generator →

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