#54339B#54339B

#54339B is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.160 H 292.8°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#54339B
RGBrgb(84, 51, 155)
HSLhsl(259, 50%, 40%)
HSVhsv(259, 67%, 61%)
CMYKcmyk(45.8%, 67.1%, 0%, 39.2%)
CIE-LABlab(30.92, 39.58, -51.67)
CIE-LCHlch(30.92, 65.09, 307.45°)
OKLaboklab(42.17% 0.0621 -0.1478)
OKLCHoklch(42.17% 0.16 292.8)
XYZxyz(10.7547, 6.6187, 31.7149)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54339B #7A9B33
analogous
#33469B #54339B #88339B
triadic
#54339B #9B5433 #339B54
tetradic
#54339B #9B3346 #7A9B33 #339B88
square
#54339B #9B3346 #7A9B33 #339B88
split-complementary
#54339B #9B8833 #469B33
monochromatic
#22153F #3B246D #54339B #6F48C3 #9376D2

Accessibility & contrast

On white

9.04
#54339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#54339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54339B
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54339B#FFFFFF#000000##FFFFFF
##54339B1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#3F4C62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #54339b;
/* rgb */ color: rgb(84, 51, 155);
/* oklch */ color: oklch(42.2% 0.160 292.8);
Tailwind
colors: {
  custom: {
    50: '#8a6db9',
    500: '#54339b',
    950: '#000000',
  },
}
SCSS
$custom: #54339b;
$custom-light: #8a6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#54339b",
  "rgb": {
    "r": 84,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 259.038,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42167,
    "c": 0.16033,
    "h": 292.8
  },
  "luminance": 0.06619
}

Semantic roles & 50–950 ramp

primary
#54339B
secondary
#A3BA6F
accent
#DA4EAE
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #54339B

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

Preview Lab → · Contrast checker → · Palette generator →

#54339B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva