#340335#340335

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

Color values

HEX#340335
RGBrgb(52, 3, 53)
HSLhsl(299, 89%, 11%)
HSVhsv(299, 94%, 21%)
CMYKcmyk(1.9%, 94.3%, 0%, 79.2%)
CIE-LABlab(9.42, 30.54, -19.52)
CIE-LCHlch(9.42, 36.24, 327.41°)
OKLaboklab(23.26% 0.0847 -0.0543)
OKLCHoklch(23.26% 0.101 327.3)
XYZxyz(2.0913, 1.0524, 3.4605)
Luminance0.0105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340335 #043503
analogous
#1B0335 #340335 #35031D
triadic
#340335 #353403 #033534
tetradic
#340335 #351B03 #043503 #031D35
square
#340335 #351B03 #043503 #031D35
split-complementary
#340335 #1D3503 #03351B
monochromatic
#1C021D #1C021D #340335 #6D066F #A60AA9

Accessibility & contrast

On white

17.35
#340335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340335
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340335#FFFFFF#000000##FFFFFF
##3403351.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001636
Deuteranopia (green-blind)
#101C34
Tritanopia (blue-blind)
#360B1C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340335;
/* rgb */ color: rgb(52, 3, 53);
/* oklch */ color: oklch(23.3% 0.101 327.3);
Tailwind
colors: {
  custom: {
    50: '#6e4a6c',
    500: '#340335',
    950: '#000000',
  },
}
SCSS
$custom: #340335;
$custom-light: #6e4a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#340335",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 298.8,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.23262,
    "c": 0.10059,
    "h": 327.3
  },
  "luminance": 0.01052
}

Semantic roles & 50–950 ramp

primary
#340335
secondary
#1E781C
accent
#FF292D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340335

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

Preview Lab → · Contrast checker → · Palette generator →

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