#340538#340538

#340538 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.100 H 324.6°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#340538
RGBrgb(52, 5, 56)
HSLhsl(295, 84%, 12%)
HSVhsv(295, 91%, 22%)
CMYKcmyk(7.1%, 91.1%, 0%, 78%)
CIE-LABlab(9.99, 30.14, -20.80)
CIE-LCHlch(9.99, 36.62, 325.39°)
OKLaboklab(23.73% 0.0816 -0.058)
OKLCHoklch(23.73% 0.1 324.6)
XYZxyz(2.1842, 1.1243, 3.8426)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340538 #093805
analogous
#1B0538 #340538 #380523
triadic
#340538 #383405 #053834
tetradic
#340538 #381B05 #093805 #052338
square
#340538 #381B05 #093805 #052338
split-complementary
#340538 #233805 #05381B
monochromatic
#1A031C #1A031C #340538 #680A70 #9C0FA8

Accessibility & contrast

On white

17.15
#340538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340538
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340538#FFFFFF#000000##FFFFFF
##3405381.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#0F1D37
Tritanopia (blue-blind)
#350E1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340538;
/* rgb */ color: rgb(52, 5, 56);
/* oklch */ color: oklch(23.7% 0.100 324.6);
Tailwind
colors: {
  custom: {
    50: '#6e4b6f',
    500: '#340538',
    950: '#000000',
  },
}
SCSS
$custom: #340538;
$custom-light: #6e4b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340538",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 295.294,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23734,
    "c": 0.10013,
    "h": 324.6
  },
  "luminance": 0.01124
}

Semantic roles & 50–950 ramp

primary
#340538
secondary
#277920
accent
#FA2E3E
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340538

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

Preview Lab → · Contrast checker → · Palette generator →

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