#340634#340634

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

Color values

HEX#340634
RGBrgb(52, 6, 52)
HSLhsl(300, 79%, 11%)
HSVhsv(300, 88%, 20%)
CMYKcmyk(0%, 88.5%, 0%, 79.6%)
CIE-LABlab(9.86, 28.85, -18.09)
CIE-LCHlch(9.86, 34.05, 327.91°)
OKLaboklab(23.55% 0.0805 -0.0501)
OKLCHoklch(23.55% 0.095 328.1)
XYZxyz(2.1011, 1.1084, 3.3514)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340634 #063406
analogous
#1D0634 #340634 #34061D
triadic
#340634 #343406 #063434
tetradic
#340634 #341D06 #063406 #061D34
square
#340634 #341D06 #063406 #061D34
split-complementary
#340634 #1D3406 #06341D
monochromatic
#1B031B #1B031B #340634 #6B0C6B #A213A2

Accessibility & contrast

On white

17.19
#340634 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340634
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340634#FFFFFF#000000##FFFFFF
##3406341.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340634;
/* rgb */ color: rgb(52, 6, 52);
/* oklch */ color: oklch(23.6% 0.095 328.1);
Tailwind
colors: {
  custom: {
    50: '#6e4c6b',
    500: '#340634',
    950: '#000000',
  },
}
SCSS
$custom: #340634;
$custom-light: #6e4c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340634",
  "rgb": {
    "r": 52,
    "g": 6,
    "b": 52
  },
  "hsl": {
    "h": 300,
    "s": 79.31,
    "l": 11.373
  },
  "oklch": {
    "l": 0.23553,
    "c": 0.09485,
    "h": 328.1
  },
  "luminance": 0.01108
}

Semantic roles & 50–950 ramp

primary
#340634
secondary
#217421
accent
#F63232
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340634

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

Preview Lab → · Contrast checker → · Palette generator →

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