#340635#340635

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

Color values

HEX#340635
RGBrgb(52, 6, 53)
HSLhsl(299, 80%, 12%)
HSVhsv(299, 89%, 21%)
CMYKcmyk(1.9%, 88.7%, 0%, 79.2%)
CIE-LABlab(9.93, 29.05, -18.70)
CIE-LCHlch(9.93, 34.55, 327.22°)
OKLaboklab(23.63% 0.0805 -0.0519)
OKLCHoklch(23.63% 0.096 327.2)
XYZxyz(2.1239, 1.1175, 3.4713)
Luminance0.0112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340635 #073506
analogous
#1D0635 #340635 #35061F
triadic
#340635 #353406 #063534
tetradic
#340635 #351D06 #073506 #061F35
square
#340635 #351D06 #073506 #061F35
split-complementary
#340635 #1F3506 #06351D
monochromatic
#1B031B #1B031B #340635 #6A0C6C #A012A3

Accessibility & contrast

On white

17.17
#340635 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340635
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340635#FFFFFF#000000##FFFFFF
##3406351.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001836
Deuteranopia (green-blind)
#121D34
Tritanopia (blue-blind)
#360E1D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340635;
/* rgb */ color: rgb(52, 6, 53);
/* oklch */ color: oklch(23.6% 0.096 327.2);
Tailwind
colors: {
  custom: {
    50: '#6e4c6c',
    500: '#340635',
    950: '#000000',
  },
}
SCSS
$custom: #340635;
$custom-light: #6e4c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#340635",
  "rgb": {
    "r": 52,
    "g": 6,
    "b": 53
  },
  "hsl": {
    "h": 298.723,
    "s": 79.661,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23626,
    "c": 0.09578,
    "h": 327.2
  },
  "luminance": 0.01117
}

Semantic roles & 50–950 ramp

primary
#340635
secondary
#237521
accent
#F63236
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340635

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

Preview Lab → · Contrast checker → · Palette generator →

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