#340A2E#340A2E

#340A2E is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.083 H 334.2°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#340A2E
RGBrgb(52, 10, 46)
HSLhsl(309, 68%, 12%)
HSVhsv(309, 81%, 20%)
CMYKcmyk(0%, 80.8%, 11.5%, 79.6%)
CIE-LABlab(10.14, 25.77, -13.24)
CIE-LCHlch(10.14, 28.97, 332.80°)
OKLaboklab(23.63% 0.0747 -0.0362)
OKLCHoklch(23.63% 0.083 334.2)
XYZxyz(2.0179, 1.1446, 2.6989)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A2E #0A3410
analogous
#250A34 #340A2E #340A19
triadic
#340A2E #2E340A #0A2E34
tetradic
#340A2E #34250A #0A3410 #0A1934
square
#340A2E #34250A #0A3410 #0A1934
split-complementary
#340A2E #19340A #0A3425
monochromatic
#1A0517 #1A0517 #340A2E #67145B #9B1E89

Accessibility & contrast

On white

17.09
#340A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340A2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A2E
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A2E#FFFFFF#000000##FFFFFF
##340A2E1.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09182F
Deuteranopia (green-blind)
#181E2D
Tritanopia (blue-blind)
#370D1A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340a2e;
/* rgb */ color: rgb(52, 10, 46);
/* oklch */ color: oklch(23.6% 0.083 334.2);
Tailwind
colors: {
  custom: {
    50: '#6d4d67',
    500: '#340a2e',
    950: '#000000',
  },
}
SCSS
$custom: #340a2e;
$custom-light: #6d4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#340a2e",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 46
  },
  "hsl": {
    "h": 308.571,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23627,
    "c": 0.08303,
    "h": 334.2
  },
  "luminance": 0.01144
}

Semantic roles & 50–950 ramp

primary
#340A2E
secondary
#287133
accent
#EB563D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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