#340536#340536

#340536 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.098 H 326.3°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#340536
RGBrgb(52, 5, 54)
HSLhsl(298, 83%, 12%)
HSVhsv(298, 91%, 21%)
CMYKcmyk(3.7%, 90.7%, 0%, 78.8%)
CIE-LABlab(9.84, 29.74, -19.58)
CIE-LCHlch(9.84, 35.61, 326.63°)
OKLaboklab(23.58% 0.0818 -0.0545)
OKLCHoklch(23.58% 0.098 326.3)
XYZxyz(2.1363, 1.1051, 3.5901)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340536 #073605
analogous
#1C0536 #340536 #360520
triadic
#340536 #363405 #053634
tetradic
#340536 #361C05 #073605 #052036
square
#340536 #361C05 #073605 #052036
split-complementary
#340536 #203605 #05361C
monochromatic
#1B031C #1B031C #340536 #6A0A6E #A00FA6

Accessibility & contrast

On white

17.20
#340536 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340536
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340536#FFFFFF#000000##FFFFFF
##3405361.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#111D35
Tritanopia (blue-blind)
#360D1D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340536;
/* rgb */ color: rgb(52, 5, 54);
/* oklch */ color: oklch(23.6% 0.098 326.3);
Tailwind
colors: {
  custom: {
    50: '#6e4b6d',
    500: '#340536',
    950: '#000000',
  },
}
SCSS
$custom: #340536;
$custom-light: #6e4b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#340536",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 54
  },
  "hsl": {
    "h": 297.551,
    "s": 83.051,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23581,
    "c": 0.09828,
    "h": 326.3
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#340536
secondary
#237720
accent
#F92E37
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340536

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

Preview Lab → · Contrast checker → · Palette generator →

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