#340A2F#340A2F

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

Color values

HEX#340A2F
RGBrgb(52, 10, 47)
HSLhsl(307, 68%, 12%)
HSVhsv(307, 81%, 20%)
CMYKcmyk(0%, 80.8%, 9.6%, 79.6%)
CIE-LABlab(10.20, 25.96, -13.88)
CIE-LCHlch(10.20, 29.44, 331.86°)
OKLaboklab(23.69% 0.0749 -0.038)
OKLCHoklch(23.69% 0.084 333.1)
XYZxyz(2.0378, 1.1525, 2.8039)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A2F #0A340F
analogous
#240A34 #340A2F #340A1A
triadic
#340A2F #2F340A #0A2F34
tetradic
#340A2F #34240A #0A340F #0A1A34
square
#340A2F #34240A #0A340F #0A1A34
split-complementary
#340A2F #1A340A #0A3424
monochromatic
#1A0517 #1A0517 #340A2F #67145D #9B1E8C

Accessibility & contrast

On white

17.07
#340A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A2F
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A2F#FFFFFF#000000##FFFFFF
##340A2F1.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091830
Deuteranopia (green-blind)
#171E2E
Tritanopia (blue-blind)
#370E1B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340a2f;
/* rgb */ color: rgb(52, 10, 47);
/* oklch */ color: oklch(23.7% 0.084 333.1);
Tailwind
colors: {
  custom: {
    50: '#6d4d67',
    500: '#340a2f',
    950: '#000000',
  },
}
SCSS
$custom: #340a2f;
$custom-light: #6d4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#340a2f",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 47
  },
  "hsl": {
    "h": 307.143,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.2369,
    "c": 0.08396,
    "h": 333.1
  },
  "luminance": 0.01152
}

Semantic roles & 50–950 ramp

primary
#340A2F
secondary
#287131
accent
#EB523D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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