#340A3A#340A3A

#340A3A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.095 H 322.4°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#340A3A
RGBrgb(52, 10, 58)
HSLhsl(293, 71%, 13%)
HSVhsv(293, 83%, 23%)
CMYKcmyk(10.3%, 82.8%, 0%, 77.3%)
CIE-LABlab(10.94, 28.25, -20.71)
CIE-LCHlch(10.94, 35.03, 323.75°)
OKLaboklab(24.46% 0.0751 -0.0578)
OKLCHoklch(24.46% 0.095 322.4)
XYZxyz(2.2884, 1.2528, 4.1234)
Luminance0.0125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A3A #103A0A
analogous
#1C0A3A #340A3A #3A0A28
triadic
#340A3A #3A340A #0A3A34
tetradic
#340A3A #3A1C0A #103A0A #0A283A
square
#340A3A #3A1C0A #103A0A #0A283A
split-complementary
#340A3A #283A0A #0A3A1C
monochromatic
#17051A #17051A #340A3A #63136E #921CA2

Accessibility & contrast

On white

16.79
#340A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A3A
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A3A#FFFFFF#000000##FFFFFF
##340A3A1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#111F39
Tritanopia (blue-blind)
#351321
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340a3a;
/* rgb */ color: rgb(52, 10, 58);
/* oklch */ color: oklch(24.5% 0.095 322.4);
Tailwind
colors: {
  custom: {
    50: '#6e4e70',
    500: '#340a3a',
    950: '#000000',
  },
}
SCSS
$custom: #340a3a;
$custom-light: #6e4e70;
$custom-dark: #000000;
JSON
{
  "hex": "#340a3a",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 58
  },
  "hsl": {
    "h": 292.5,
    "s": 70.588,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2446,
    "c": 0.0948,
    "h": 322.4
  },
  "luminance": 0.01253
}

Semantic roles & 50–950 ramp

primary
#340A3A
secondary
#327728
accent
#ED3A51
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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