#340A3B#340A3B

#340A3B is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.096 H 321.5°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#340A3B
RGBrgb(52, 10, 59)
HSLhsl(291, 71%, 14%)
HSVhsv(291, 83%, 23%)
CMYKcmyk(11.9%, 83.1%, 0%, 76.9%)
CIE-LABlab(11.01, 28.47, -21.31)
CIE-LCHlch(11.01, 35.57, 323.18°)
OKLaboklab(24.54% 0.075 -0.0596)
OKLCHoklch(24.54% 0.096 321.5)
XYZxyz(2.3140, 1.2630, 4.2587)
Luminance0.0126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A3B #113B0A
analogous
#1B0A3B #340A3B #3B0A29
triadic
#340A3B #3B340A #0A3B34
tetradic
#340A3B #3B1B0A #113B0A #0A293B
square
#340A3B #3B1B0A #113B0A #0A293B
split-complementary
#340A3B #293B0A #0A3B1B
monochromatic
#17041A #17041A #340A3B #62136F #901CA4

Accessibility & contrast

On white

16.77
#340A3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340A3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A3B
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A3B#FFFFFF#000000##FFFFFF
##340A3B1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#101F3A
Tritanopia (blue-blind)
#351321
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340a3b;
/* rgb */ color: rgb(52, 10, 59);
/* oklch */ color: oklch(24.5% 0.096 321.5);
Tailwind
colors: {
  custom: {
    50: '#6e4e71',
    500: '#340a3b',
    950: '#000000',
  },
}
SCSS
$custom: #340a3b;
$custom-light: #6e4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#340a3b",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 59
  },
  "hsl": {
    "h": 291.429,
    "s": 71.014,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24536,
    "c": 0.09583,
    "h": 321.5
  },
  "luminance": 0.01263
}

Semantic roles & 50–950 ramp

primary
#340A3B
secondary
#347828
accent
#EE3A54
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340A3B

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

Preview Lab → · Contrast checker → · Palette generator →

#340A3B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva