#340332#340332

#340332 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.098 H 330.0°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#340332
RGBrgb(52, 3, 50)
HSLhsl(302, 89%, 11%)
HSVhsv(302, 94%, 20%)
CMYKcmyk(0%, 94.2%, 3.8%, 79.6%)
CIE-LABlab(9.20, 29.97, -17.67)
CIE-LCHlch(9.20, 34.79, 329.47°)
OKLaboklab(23.04% 0.0849 -0.0489)
OKLCHoklch(23.04% 0.098 330)
XYZxyz(2.0245, 1.0256, 3.1083)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340332 #033405
analogous
#1D0334 #340332 #340319
triadic
#340332 #323403 #033234
tetradic
#340332 #341D03 #033405 #031934
square
#340332 #341D03 #033405 #031934
split-complementary
#340332 #193403 #03341D
monochromatic
#1D021C #1D021C #340332 #6E066A #A80AA1

Accessibility & contrast

On white

17.43
#340332 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#340332 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340332
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340332#FFFFFF#000000##FFFFFF
##3403321.0017.431.2117.43
#FFFFFF17.431.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001633
Deuteranopia (green-blind)
#121C31
Tritanopia (blue-blind)
#36091A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340332;
/* rgb */ color: rgb(52, 3, 50);
/* oklch */ color: oklch(23.0% 0.098 330.0);
Tailwind
colors: {
  custom: {
    50: '#6e4a6a',
    500: '#340332',
    950: '#000000',
  },
}
SCSS
$custom: #340332;
$custom-light: #6e4a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#340332",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 50
  },
  "hsl": {
    "h": 302.449,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.23038,
    "c": 0.09796,
    "h": 330
  },
  "luminance": 0.01025
}

Semantic roles & 50–950 ramp

primary
#340332
secondary
#1C771F
accent
#FF3229
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340332

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

Preview Lab → · Contrast checker → · Palette generator →

#340332 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva