#340C2F#340C2F

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

Color values

HEX#340C2F
RGBrgb(52, 12, 47)
HSLhsl(308, 63%, 13%)
HSVhsv(308, 77%, 20%)
CMYKcmyk(0%, 76.9%, 9.6%, 79.6%)
CIE-LABlab(10.55, 25.00, -13.35)
CIE-LCHlch(10.55, 28.34, 331.90°)
OKLaboklab(23.94% 0.0721 -0.0365)
OKLCHoklch(23.94% 0.081 333.1)
XYZxyz(2.0607, 1.1984, 2.8116)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C2F #0C3411
analogous
#250C34 #340C2F #340C1B
triadic
#340C2F #2F340C #0C2F34
tetradic
#340C2F #34250C #0C3411 #0C1B34
square
#340C2F #34250C #0C3411 #0C1B34
split-complementary
#340C2F #1B340C #0C3425
monochromatic
#190616 #190616 #340C2F #66175C #972389

Accessibility & contrast

On white

16.94
#340C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C2F
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C2F#FFFFFF#000000##FFFFFF
##340C2F1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1930
Deuteranopia (green-blind)
#181F2E
Tritanopia (blue-blind)
#370F1C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340c2f;
/* rgb */ color: rgb(52, 12, 47);
/* oklch */ color: oklch(23.9% 0.081 333.1);
Tailwind
colors: {
  custom: {
    50: '#6d4e67',
    500: '#340c2f',
    950: '#000000',
  },
}
SCSS
$custom: #340c2f;
$custom-light: #6d4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#340c2f",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 307.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23939,
    "c": 0.08077,
    "h": 333.1
  },
  "luminance": 0.01198
}

Semantic roles & 50–950 ramp

primary
#340C2F
secondary
#2C7034
accent
#E65742
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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