#340B2F#340B2F

#340B2F is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.082 H 333.1°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#340B2F
RGBrgb(52, 11, 47)
HSLhsl(307, 65%, 12%)
HSVhsv(307, 79%, 20%)
CMYKcmyk(0%, 78.8%, 9.6%, 79.6%)
CIE-LABlab(10.37, 25.49, -13.62)
CIE-LCHlch(10.37, 28.90, 331.88°)
OKLaboklab(23.81% 0.0735 -0.0373)
OKLCHoklch(23.81% 0.082 333.1)
XYZxyz(2.0489, 1.1748, 2.8076)
Luminance0.0118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B2F #0B3410
analogous
#250B34 #340B2F #340B1B
triadic
#340B2F #2F340B #0B2F34
tetradic
#340B2F #34250B #0B3410 #0B1B34
square
#340B2F #34250B #0B3410 #0B1B34
split-complementary
#340B2F #1B340B #0B3425
monochromatic
#190517 #190517 #340B2F #67165D #99208A

Accessibility & contrast

On white

17.00
#340B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B2F
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B2F#FFFFFF#000000##FFFFFF
##340B2F1.0017.001.2317.00
#FFFFFF17.001.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1830
Deuteranopia (green-blind)
#181E2E
Tritanopia (blue-blind)
#370F1B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340b2f;
/* rgb */ color: rgb(52, 11, 47);
/* oklch */ color: oklch(23.8% 0.082 333.1);
Tailwind
colors: {
  custom: {
    50: '#6d4e67',
    500: '#340b2f',
    950: '#000000',
  },
}
SCSS
$custom: #340b2f;
$custom-light: #6d4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#340b2f",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 47
  },
  "hsl": {
    "h": 307.317,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23812,
    "c": 0.0824,
    "h": 333.1
  },
  "luminance": 0.01175
}

Semantic roles & 50–950 ramp

primary
#340B2F
secondary
#2A7133
accent
#E85440
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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