#340B37#340B37

#340B37 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.090 H 325.0°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#340B37
RGBrgb(52, 11, 55)
HSLhsl(296, 67%, 13%)
HSVhsv(296, 80%, 22%)
CMYKcmyk(5.5%, 80%, 0%, 78.4%)
CIE-LABlab(10.89, 27.14, -18.64)
CIE-LCHlch(10.89, 32.93, 325.53°)
OKLaboklab(24.35% 0.074 -0.0518)
OKLCHoklch(24.35% 0.09 325)
XYZxyz(2.2254, 1.2454, 3.7369)
Luminance0.0124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B37 #0E370B
analogous
#1E0B37 #340B37 #370B24
triadic
#340B37 #37340B #0B3734
tetradic
#340B37 #371E0B #0E370B #0B2437
square
#340B37 #371E0B #0E370B #0B2437
split-complementary
#340B37 #24370B #0B371E
monochromatic
#18051A #18051A #340B37 #64156A #941F9D

Accessibility & contrast

On white

16.81
#340B37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B37
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B37#FFFFFF#000000##FFFFFF
##340B371.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031A38
Deuteranopia (green-blind)
#141F36
Tritanopia (blue-blind)
#351220
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340b37;
/* rgb */ color: rgb(52, 11, 55);
/* oklch */ color: oklch(24.4% 0.090 325.0);
Tailwind
colors: {
  custom: {
    50: '#6d4e6e',
    500: '#340b37',
    950: '#000000',
  },
}
SCSS
$custom: #340b37;
$custom-light: #6d4e6e;
$custom-dark: #000000;
JSON
{
  "hex": "#340b37",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 55
  },
  "hsl": {
    "h": 295.909,
    "s": 66.667,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24353,
    "c": 0.09029,
    "h": 325
  },
  "luminance": 0.01245
}

Semantic roles & 50–950 ramp

primary
#340B37
secondary
#2F742A
accent
#EA3E4A
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #340B37

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

Preview Lab → · Contrast checker → · Palette generator →

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