#340E2E#340E2E

#340E2E is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.076 H 334.4°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#340E2E
RGBrgb(52, 14, 46)
HSLhsl(309, 58%, 13%)
HSVhsv(309, 73%, 20%)
CMYKcmyk(0%, 73.1%, 11.5%, 79.6%)
CIE-LABlab(10.86, 23.77, -12.12)
CIE-LCHlch(10.86, 26.68, 332.99°)
OKLaboklab(24.15% 0.0689 -0.033)
OKLCHoklch(24.15% 0.076 334.4)
XYZxyz(2.0664, 1.2416, 2.7151)
Luminance0.0124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E2E #0E3414
analogous
#270E34 #340E2E #340E1B
triadic
#340E2E #2E340E #0E2E34
tetradic
#340E2E #34270E #0E3414 #0E1B34
square
#340E2E #34270E #0E3414 #0E1B34
split-complementary
#340E2E #1B340E #0E3427
monochromatic
#180615 #180615 #340E2E #641B59 #942883

Accessibility & contrast

On white

16.82
#340E2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340E2E
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E2E#FFFFFF#000000##FFFFFF
##340E2E1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1A2F
Deuteranopia (green-blind)
#1A1F2D
Tritanopia (blue-blind)
#37111C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340e2e;
/* rgb */ color: rgb(52, 14, 46);
/* oklch */ color: oklch(24.1% 0.076 334.4);
Tailwind
colors: {
  custom: {
    50: '#6d4f66',
    500: '#340e2e',
    950: '#000000',
  },
}
SCSS
$custom: #340e2e;
$custom-light: #6d4f66;
$custom-dark: #000000;
JSON
{
  "hex": "#340e2e",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 46
  },
  "hsl": {
    "h": 309.474,
    "s": 57.576,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2415,
    "c": 0.07639,
    "h": 334.4
  },
  "luminance": 0.01241
}

Semantic roles & 50–950 ramp

primary
#340E2E
secondary
#2F6F39
accent
#E15F47
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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