#340A3C#340A3C

#340A3C is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.097 H 320.7°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#340A3C
RGBrgb(52, 10, 60)
HSLhsl(290, 71%, 14%)
HSVhsv(290, 83%, 24%)
CMYKcmyk(13.3%, 83.3%, 0%, 76.5%)
CIE-LABlab(11.09, 28.70, -21.91)
CIE-LCHlch(11.09, 36.10, 322.64°)
OKLaboklab(24.61% 0.075 -0.0613)
OKLCHoklch(24.61% 0.097 320.7)
XYZxyz(2.3402, 1.2735, 4.3966)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A3C #123C0A
analogous
#1B0A3C #340A3C #3C0A2B
triadic
#340A3C #3C340A #0A3C34
tetradic
#340A3C #3C1B0A #123C0A #0A2B3C
square
#340A3C #3C1B0A #123C0A #0A2B3C
split-complementary
#340A3C #2B3C0A #0A3C1B
monochromatic
#17041A #17041A #340A3C #611370 #8F1BA5

Accessibility & contrast

On white

16.74
#340A3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A3C
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A3C#FFFFFF#000000##FFFFFF
##340A3C1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#0F1F3B
Tritanopia (blue-blind)
#341422
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340a3c;
/* rgb */ color: rgb(52, 10, 60);
/* oklch */ color: oklch(24.6% 0.097 320.7);
Tailwind
colors: {
  custom: {
    50: '#6e4e72',
    500: '#340a3c',
    950: '#000000',
  },
}
SCSS
$custom: #340a3c;
$custom-light: #6e4e72;
$custom-dark: #000000;
JSON
{
  "hex": "#340a3c",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 60
  },
  "hsl": {
    "h": 290.4,
    "s": 71.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24613,
    "c": 0.09686,
    "h": 320.7
  },
  "luminance": 0.01273
}

Semantic roles & 50–950 ramp

primary
#340A3C
secondary
#357928
accent
#EE3A57
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #340A3C

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

Preview Lab → · Contrast checker → · Palette generator →

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