#340541#340541

#340541 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.5% C 0.109 H 317.4°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#340541
RGBrgb(52, 5, 65)
HSLhsl(287, 86%, 14%)
HSVhsv(287, 92%, 25%)
CMYKcmyk(20%, 92.3%, 0%, 74.5%)
CIE-LABlab(10.71, 32.07, -26.08)
CIE-LCHlch(10.71, 41.34, 320.87°)
OKLaboklab(24.47% 0.0801 -0.0735)
OKLCHoklch(24.47% 0.109 317.4)
XYZxyz(2.4244, 1.2204, 5.1079)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340541 #124105
analogous
#160541 #340541 #410530
triadic
#340541 #413405 #054134
tetradic
#340541 #411605 #124105 #053041
square
#340541 #411605 #124105 #053041
split-complementary
#340541 #304105 #054116
monochromatic
#17021C #17021C #340541 #61097A #8F0EB3

Accessibility & contrast

On white

16.88
#340541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340541
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340541#FFFFFF#000000##FFFFFF
##3405411.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#061E40
Tritanopia (blue-blind)
#331324
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340541;
/* rgb */ color: rgb(52, 5, 65);
/* oklch */ color: oklch(24.5% 0.109 317.4);
Tailwind
colors: {
  custom: {
    50: '#6e4c76',
    500: '#340541',
    950: '#000000',
  },
}
SCSS
$custom: #340541;
$custom-light: #6e4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#340541",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 287,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24469,
    "c": 0.10871,
    "h": 317.4
  },
  "luminance": 0.0122
}

Semantic roles & 50–950 ramp

primary
#340541
secondary
#358120
accent
#FC2C59
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #340541

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

Preview Lab → · Contrast checker → · Palette generator →

#340541 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva