#340532#340532

#340532 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.3% C 0.095 H 330.0°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#340532
RGBrgb(52, 5, 50)
HSLhsl(303, 82%, 11%)
HSVhsv(303, 90%, 20%)
CMYKcmyk(0%, 90.4%, 3.8%, 79.6%)
CIE-LABlab(9.55, 28.95, -17.11)
CIE-LCHlch(9.55, 33.63, 329.41°)
OKLaboklab(23.29% 0.082 -0.0473)
OKLCHoklch(23.29% 0.095 330)
XYZxyz(2.0462, 1.0691, 3.1156)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340532 #053407
analogous
#1E0534 #340532 #34051A
triadic
#340532 #323405 #053234
tetradic
#340532 #341E05 #053407 #051A34
square
#340532 #341E05 #053407 #051A34
split-complementary
#340532 #1A3405 #05341E
monochromatic
#1C031B #1C031B #340532 #6C0A68 #A4109D

Accessibility & contrast

On white

17.30
#340532 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#340532 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340532
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340532#FFFFFF#000000##FFFFFF
##3405321.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011633
Deuteranopia (green-blind)
#131D31
Tritanopia (blue-blind)
#360B1B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340532;
/* rgb */ color: rgb(52, 5, 50);
/* oklch */ color: oklch(23.3% 0.095 330.0);
Tailwind
colors: {
  custom: {
    50: '#6e4b6a',
    500: '#340532',
    950: '#000000',
  },
}
SCSS
$custom: #340532;
$custom-light: #6e4b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#340532",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 50
  },
  "hsl": {
    "h": 302.553,
    "s": 82.456,
    "l": 11.176
  },
  "oklch": {
    "l": 0.23288,
    "c": 0.09464,
    "h": 330
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#340532
secondary
#1F7523
accent
#F9382F
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340532

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

Preview Lab → · Contrast checker → · Palette generator →

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