#340B3E#340B3E

#340B3E is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.098 H 319.0°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#340B3E
RGBrgb(52, 11, 62)
HSLhsl(288, 70%, 14%)
HSVhsv(288, 82%, 24%)
CMYKcmyk(16.1%, 82.3%, 0%, 75.7%)
CIE-LABlab(11.40, 28.71, -22.84)
CIE-LCHlch(11.40, 36.69, 321.49°)
OKLaboklab(24.88% 0.0736 -0.0641)
OKLCHoklch(24.88% 0.098 319)
XYZxyz(2.4052, 1.3173, 4.6841)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B3E #153E0B
analogous
#1B0B3E #340B3E #3E0B2F
triadic
#340B3E #3E340B #0B3E34
tetradic
#340B3E #3E1B0B #153E0B #0B2F3E
square
#340B3E #3E1B0B #153E0B #0B2F3E
split-complementary
#340B3E #2F3E0B #0B3E1B
monochromatic
#16051A #16051A #340B3E #601472 #8B1DA6

Accessibility & contrast

On white

16.62
#340B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340B3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B3E
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B3E#FFFFFF#000000##FFFFFF
##340B3E1.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#0E203D
Tritanopia (blue-blind)
#341523
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340b3e;
/* rgb */ color: rgb(52, 11, 62);
/* oklch */ color: oklch(24.9% 0.098 319.0);
Tailwind
colors: {
  custom: {
    50: '#6e4f73',
    500: '#340b3e',
    950: '#000000',
  },
}
SCSS
$custom: #340b3e;
$custom-light: #6e4f73;
$custom-dark: #000000;
JSON
{
  "hex": "#340b3e",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 62
  },
  "hsl": {
    "h": 288.235,
    "s": 69.863,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2488,
    "c": 0.09759,
    "h": 319
  },
  "luminance": 0.01317
}

Semantic roles & 50–950 ramp

primary
#340B3E
secondary
#3A7B2A
accent
#ED3B5E
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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