#340B2E#340B2E

#340B2E is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.7% C 0.081 H 334.2°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#340B2E
RGBrgb(52, 11, 46)
HSLhsl(309, 65%, 12%)
HSVhsv(309, 79%, 20%)
CMYKcmyk(0%, 78.8%, 11.5%, 79.6%)
CIE-LABlab(10.31, 25.30, -12.98)
CIE-LCHlch(10.31, 28.43, 332.84°)
OKLaboklab(23.75% 0.0734 -0.0354)
OKLCHoklch(23.75% 0.081 334.2)
XYZxyz(2.0290, 1.1668, 2.7026)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B2E #0B3411
analogous
#250B34 #340B2E #340B1A
triadic
#340B2E #2E340B #0B2E34
tetradic
#340B2E #34250B #0B3411 #0B1A34
square
#340B2E #34250B #0B3411 #0B1A34
split-complementary
#340B2E #1A340B #0B3425
monochromatic
#190516 #190516 #340B2E #67165B #992087

Accessibility & contrast

On white

17.03
#340B2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B2E
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B2E#FFFFFF#000000##FFFFFF
##340B2E1.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A182F
Deuteranopia (green-blind)
#181E2D
Tritanopia (blue-blind)
#370E1B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340b2e;
/* rgb */ color: rgb(52, 11, 46);
/* oklch */ color: oklch(23.7% 0.081 334.2);
Tailwind
colors: {
  custom: {
    50: '#6d4e66',
    500: '#340b2e',
    950: '#000000',
  },
}
SCSS
$custom: #340b2e;
$custom-light: #6d4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#340b2e",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 46
  },
  "hsl": {
    "h": 308.78,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23749,
    "c": 0.08147,
    "h": 334.2
  },
  "luminance": 0.01167
}

Semantic roles & 50–950 ramp

primary
#340B2E
secondary
#2A7134
accent
#E85840
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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