#54347D#54347D

#54347D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.0% C 0.120 H 301.4°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#54347D
RGBrgb(84, 52, 125)
HSLhsl(266, 41%, 35%)
HSVhsv(266, 58%, 49%)
CMYKcmyk(32.8%, 58.4%, 0%, 51%)
CIE-LABlab(28.96, 30.56, -36.31)
CIE-LCHlch(28.96, 47.46, 310.08°)
OKLaboklab(40.04% 0.0627 -0.1026)
OKLCHoklch(40.04% 0.12 301.4)
XYZxyz(8.5850, 5.8214, 20.0694)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54347D #5D7D34
analogous
#34397D #54347D #79347D
triadic
#54347D #7D5434 #347D54
tetradic
#54347D #7D3439 #5D7D34 #347D79
square
#54347D #7D3439 #5D7D34 #347D79
split-complementary
#54347D #7D7934 #397D34
monochromatic
#1A1027 #372252 #54347D #7146A8 #906AC1

Accessibility & contrast

On white

9.70
#54347D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#54347D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54347D
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54347D#FFFFFF#000000##FFFFFF
##54347D1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15447F
Deuteranopia (green-blind)
#21447B
Tritanopia (blue-blind)
#4C4253
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54347d;
/* rgb */ color: rgb(84, 52, 125);
/* oklch */ color: oklch(40.0% 0.120 301.4);
Tailwind
colors: {
  custom: {
    50: '#876da3',
    500: '#54347d',
    950: '#000000',
  },
}
SCSS
$custom: #54347d;
$custom-light: #876da3;
$custom-dark: #000000;
JSON
{
  "hex": "#54347d",
  "rgb": {
    "r": 84,
    "g": 52,
    "b": 125
  },
  "hsl": {
    "h": 266.301,
    "s": 41.243,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40045,
    "c": 0.12025,
    "h": 301.4
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#54347D
secondary
#8BA964
accent
#D1579B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #54347D

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

Preview Lab → · Contrast checker → · Palette generator →

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