#340C33#340C33

#340C33 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.085 H 328.8°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#340C33
RGBrgb(52, 12, 51)
HSLhsl(302, 63%, 13%)
HSVhsv(302, 77%, 20%)
CMYKcmyk(0%, 76.9%, 1.9%, 79.6%)
CIE-LABlab(10.79, 25.82, -15.88)
CIE-LCHlch(10.79, 30.31, 328.39°)
OKLaboklab(24.2% 0.0725 -0.0438)
OKLCHoklch(24.2% 0.085 328.8)
XYZxyz(2.1452, 1.2322, 3.2562)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C33 #0C340D
analogous
#210C34 #340C33 #340C1F
triadic
#340C33 #33340C #0C3334
tetradic
#340C33 #34210C #0C340D #0C1F34
square
#340C33 #34210C #0C340D #0C1F34
split-complementary
#340C33 #1F340C #0C3421
monochromatic
#190618 #190618 #340C33 #661764 #972395

Accessibility & contrast

On white

16.85
#340C33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C33
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C33#FFFFFF#000000##FFFFFF
##340C331.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081A34
Deuteranopia (green-blind)
#161F32
Tritanopia (blue-blind)
#36111E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340c33;
/* rgb */ color: rgb(52, 12, 51);
/* oklch */ color: oklch(24.2% 0.085 328.8);
Tailwind
colors: {
  custom: {
    50: '#6d4f6b',
    500: '#340c33',
    950: '#000000',
  },
}
SCSS
$custom: #340c33;
$custom-light: #6d4f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340c33",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 51
  },
  "hsl": {
    "h": 301.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.24199,
    "c": 0.08469,
    "h": 328.8
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#340C33
secondary
#2C702E
accent
#E64642
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340C33

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

Preview Lab → · Contrast checker → · Palette generator →

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