#340D33#340D33

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

Color values

HEX#340D33
RGBrgb(52, 13, 51)
HSLhsl(302, 60%, 13%)
HSVhsv(302, 75%, 20%)
CMYKcmyk(0%, 75%, 1.9%, 79.6%)
CIE-LABlab(10.97, 25.31, -15.60)
CIE-LCHlch(10.97, 29.74, 328.35°)
OKLaboklab(24.33% 0.0711 -0.043)
OKLCHoklch(24.33% 0.083 328.8)
XYZxyz(2.1576, 1.2571, 3.2603)
Luminance0.0126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D33 #0D340E
analogous
#210D34 #340D33 #340D20
triadic
#340D33 #33340D #0D3334
tetradic
#340D33 #34210D #0D340E #0D2034
square
#340D33 #34210D #0D340E #0D2034
split-complementary
#340D33 #20340D #0D3421
monochromatic
#180618 #180618 #340D33 #651963 #962593

Accessibility & contrast

On white

16.78
#340D33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D33
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D33#FFFFFF#000000##FFFFFF
##340D331.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091A34
Deuteranopia (green-blind)
#171F32
Tritanopia (blue-blind)
#36121E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340d33;
/* rgb */ color: rgb(52, 13, 51);
/* oklch */ color: oklch(24.3% 0.083 328.8);
Tailwind
colors: {
  custom: {
    50: '#6d4f6b',
    500: '#340d33',
    950: '#000000',
  },
}
SCSS
$custom: #340d33;
$custom-light: #6d4f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340d33",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 51
  },
  "hsl": {
    "h": 301.538,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.24328,
    "c": 0.08306,
    "h": 328.8
  },
  "luminance": 0.01257
}

Semantic roles & 50–950 ramp

primary
#340D33
secondary
#2D6F2F
accent
#E34945
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340D33

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

Preview Lab → · Contrast checker → · Palette generator →

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