#340F2E#340F2E

#340F2E is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.3% C 0.075 H 334.5°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#340F2E
RGBrgb(52, 15, 46)
HSLhsl(310, 55%, 13%)
HSVhsv(310, 71%, 20%)
CMYKcmyk(0%, 71.2%, 11.5%, 79.6%)
CIE-LABlab(11.06, 23.23, -11.81)
CIE-LCHlch(11.06, 26.06, 333.05°)
OKLaboklab(24.29% 0.0673 -0.0322)
OKLCHoklch(24.29% 0.075 334.5)
XYZxyz(2.0802, 1.2691, 2.7196)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F2E #0F3415
analogous
#270F34 #340F2E #340F1B
triadic
#340F2E #2E340F #0F2E34
tetradic
#340F2E #34270F #0F3415 #0F1B34
square
#340F2E #34270F #0F3415 #0F1B34
split-complementary
#340F2E #1B340F #0F3427
monochromatic
#180715 #180715 #340F2E #631D58 #932A82

Accessibility & contrast

On white

16.75
#340F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F2E
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F2E#FFFFFF#000000##FFFFFF
##340F2E1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1A2F
Deuteranopia (green-blind)
#1A202D
Tritanopia (blue-blind)
#37111C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340f2e;
/* rgb */ color: rgb(52, 15, 46);
/* oklch */ color: oklch(24.3% 0.075 334.5);
Tailwind
colors: {
  custom: {
    50: '#6d5066',
    500: '#340f2e',
    950: '#000000',
  },
}
SCSS
$custom: #340f2e;
$custom-light: #6d5066;
$custom-dark: #000000;
JSON
{
  "hex": "#340f2e",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 309.73,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24294,
    "c": 0.07458,
    "h": 334.5
  },
  "luminance": 0.01269
}

Semantic roles & 50–950 ramp

primary
#340F2E
secondary
#316E3B
accent
#DF6149
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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