#340539#340539

#340539 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.8% C 0.101 H 323.7°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#340539
RGBrgb(52, 5, 57)
HSLhsl(294, 84%, 12%)
HSVhsv(294, 91%, 22%)
CMYKcmyk(8.8%, 91.2%, 0%, 77.6%)
CIE-LABlab(10.06, 30.35, -21.40)
CIE-LCHlch(10.06, 37.13, 324.81°)
OKLaboklab(23.81% 0.0815 -0.0598)
OKLCHoklch(23.81% 0.101 323.7)
XYZxyz(2.2089, 1.1342, 3.9727)
Luminance0.0113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340539 #0A3905
analogous
#1A0539 #340539 #390524
triadic
#340539 #393405 #053934
tetradic
#340539 #391A05 #0A3905 #052439
square
#340539 #391A05 #0A3905 #052439
split-complementary
#340539 #243905 #05391A
monochromatic
#1A021C #1A021C #340539 #670A71 #9B0FAA

Accessibility & contrast

On white

17.12
#340539 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340539 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340539
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340539#FFFFFF#000000##FFFFFF
##3405391.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#0F1D38
Tritanopia (blue-blind)
#350F1F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340539;
/* rgb */ color: rgb(52, 5, 57);
/* oklch */ color: oklch(23.8% 0.101 323.7);
Tailwind
colors: {
  custom: {
    50: '#6e4b70',
    500: '#340539',
    950: '#000000',
  },
}
SCSS
$custom: #340539;
$custom-light: #6e4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#340539",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 57
  },
  "hsl": {
    "h": 294.231,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23812,
    "c": 0.10107,
    "h": 323.7
  },
  "luminance": 0.01134
}

Semantic roles & 50–950 ramp

primary
#340539
secondary
#287A20
accent
#FA2E41
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340539

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

Preview Lab → · Contrast checker → · Palette generator →

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