#340334#340334

#340334 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.2% C 0.100 H 328.2°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#340334
RGBrgb(52, 3, 52)
HSLhsl(300, 89%, 11%)
HSVhsv(300, 94%, 20%)
CMYKcmyk(0%, 94.2%, 0%, 79.6%)
CIE-LABlab(9.35, 30.34, -18.91)
CIE-LCHlch(9.35, 35.75, 328.07°)
OKLaboklab(23.19% 0.0848 -0.0525)
OKLCHoklch(23.19% 0.1 328.2)
XYZxyz(2.0685, 1.0433, 3.3406)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340334 #033403
analogous
#1B0334 #340334 #34031B
triadic
#340334 #343403 #033434
tetradic
#340334 #341B03 #033403 #031B34
square
#340334 #341B03 #033403 #031B34
split-complementary
#340334 #1B3403 #03341B
monochromatic
#1D021D #1D021D #340334 #6E066E #A80AA8

Accessibility & contrast

On white

17.38
#340334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340334
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340334#FFFFFF#000000##FFFFFF
##3403341.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#111C33
Tritanopia (blue-blind)
#360B1B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340334;
/* rgb */ color: rgb(52, 3, 52);
/* oklch */ color: oklch(23.2% 0.100 328.2);
Tailwind
colors: {
  custom: {
    50: '#6e4a6c',
    500: '#340334',
    950: '#000000',
  },
}
SCSS
$custom: #340334;
$custom-light: #6e4a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#340334",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 300,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.23186,
    "c": 0.0997,
    "h": 328.2
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#340334
secondary
#1C771C
accent
#FF2929
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340334

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

Preview Lab → · Contrast checker → · Palette generator →

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