#340434#340434

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

Color values

HEX#340434
RGBrgb(52, 4, 52)
HSLhsl(300, 86%, 11%)
HSVhsv(300, 92%, 20%)
CMYKcmyk(0%, 92.3%, 0%, 79.6%)
CIE-LABlab(9.52, 29.83, -18.63)
CIE-LCHlch(9.52, 35.17, 328.02°)
OKLaboklab(23.31% 0.0833 -0.0517)
OKLCHoklch(23.31% 0.098 328.2)
XYZxyz(2.0794, 1.0650, 3.3442)
Luminance0.0106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340434 #043404
analogous
#1C0434 #340434 #34041C
triadic
#340434 #343404 #043434
tetradic
#340434 #341C04 #043404 #041C34
square
#340434 #341C04 #043404 #041C34
split-complementary
#340434 #1C3404 #04341C
monochromatic
#1C021C #1C021C #340434 #6D086D #A60DA6

Accessibility & contrast

On white

17.31
#340434 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340434
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340434#FFFFFF#000000##FFFFFF
##3404341.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001735
Deuteranopia (green-blind)
#121D33
Tritanopia (blue-blind)
#360B1C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340434;
/* rgb */ color: rgb(52, 4, 52);
/* oklch */ color: oklch(23.3% 0.098 328.2);
Tailwind
colors: {
  custom: {
    50: '#6e4b6b',
    500: '#340434',
    950: '#000000',
  },
}
SCSS
$custom: #340434;
$custom-light: #6e4b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340434",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 52
  },
  "hsl": {
    "h": 300,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.2331,
    "c": 0.09805,
    "h": 328.2
  },
  "luminance": 0.01065
}

Semantic roles & 50–950 ramp

primary
#340434
secondary
#1E761E
accent
#FC2C2C
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340434

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

Preview Lab → · Contrast checker → · Palette generator →

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