#340A33#340A33

#340A33 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.088 H 328.9°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#340A33
RGBrgb(52, 10, 51)
HSLhsl(301, 68%, 12%)
HSVhsv(301, 81%, 20%)
CMYKcmyk(0%, 80.8%, 1.9%, 79.6%)
CIE-LABlab(10.46, 26.76, -16.42)
CIE-LCHlch(10.46, 31.39, 328.47°)
OKLaboklab(23.96% 0.0752 -0.0453)
OKLCHoklch(23.96% 0.088 328.9)
XYZxyz(2.1222, 1.1863, 3.2485)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A33 #0A340B
analogous
#200A34 #340A33 #340A1E
triadic
#340A33 #33340A #0A3334
tetradic
#340A33 #34200A #0A340B #0A1E34
square
#340A33 #34200A #0A340B #0A1E34
split-complementary
#340A33 #1E340A #0A3420
monochromatic
#1A0519 #1A0519 #340A33 #671465 #9B1E98

Accessibility & contrast

On white

16.97
#340A33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340A33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A33
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A33#FFFFFF#000000##FFFFFF
##340A331.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051934
Deuteranopia (green-blind)
#151E32
Tritanopia (blue-blind)
#36101D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340a33;
/* rgb */ color: rgb(52, 10, 51);
/* oklch */ color: oklch(24.0% 0.088 328.9);
Tailwind
colors: {
  custom: {
    50: '#6d4e6b',
    500: '#340a33',
    950: '#000000',
  },
}
SCSS
$custom: #340a33;
$custom-light: #6d4e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340a33",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 51
  },
  "hsl": {
    "h": 301.429,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23956,
    "c": 0.08778,
    "h": 328.9
  },
  "luminance": 0.01186
}

Semantic roles & 50–950 ramp

primary
#340A33
secondary
#28712A
accent
#EB413D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340A33

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

Preview Lab → · Contrast checker → · Palette generator →

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