#340B3A#340B3A

#340B3A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.093 H 322.3°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#340B3A
RGBrgb(52, 11, 58)
HSLhsl(292, 68%, 14%)
HSVhsv(292, 81%, 23%)
CMYKcmyk(10.3%, 81%, 0%, 77.3%)
CIE-LABlab(11.10, 27.80, -20.46)
CIE-LCHlch(11.10, 34.52, 323.65°)
OKLaboklab(24.57% 0.0739 -0.0571)
OKLCHoklch(24.57% 0.093 322.3)
XYZxyz(2.2995, 1.2750, 4.1272)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B3A #113A0B
analogous
#1C0B3A #340B3A #3A0B28
triadic
#340B3A #3A340B #0B3A34
tetradic
#340B3A #3A1C0B #113A0B #0B283A
square
#340B3A #3A1C0B #113A0B #0B283A
split-complementary
#340B3A #283A0B #0B3A1C
monochromatic
#17051A #17051A #340B3A #62156D #901FA1

Accessibility & contrast

On white

16.73
#340B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B3A
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B3A#FFFFFF#000000##FFFFFF
##340B3A1.0016.731.2516.73
#FFFFFF16.731.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3B
Deuteranopia (green-blind)
#121F39
Tritanopia (blue-blind)
#351321
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340b3a;
/* rgb */ color: rgb(52, 11, 58);
/* oklch */ color: oklch(24.6% 0.093 322.3);
Tailwind
colors: {
  custom: {
    50: '#6d4e70',
    500: '#340b3a',
    950: '#000000',
  },
}
SCSS
$custom: #340b3a;
$custom-light: #6d4e70;
$custom-dark: #000000;
JSON
{
  "hex": "#340b3a",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 58
  },
  "hsl": {
    "h": 292.34,
    "s": 68.116,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24573,
    "c": 0.09339,
    "h": 322.3
  },
  "luminance": 0.01275
}

Semantic roles & 50–950 ramp

primary
#340B3A
secondary
#34772A
accent
#EB3D53
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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