#340A3E#340A3E

#340A3E is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.8% C 0.099 H 319.1°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#340A3E
RGBrgb(52, 10, 62)
HSLhsl(288, 72%, 14%)
HSVhsv(288, 84%, 24%)
CMYKcmyk(16.1%, 83.9%, 0%, 75.7%)
CIE-LABlab(11.24, 29.15, -23.09)
CIE-LCHlch(11.24, 37.19, 321.61°)
OKLaboklab(24.77% 0.0748 -0.0648)
OKLCHoklch(24.77% 0.099 319.1)
XYZxyz(2.3941, 1.2951, 4.6804)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A3E #143E0A
analogous
#1A0A3E #340A3E #3E0A2E
triadic
#340A3E #3E340A #0A3E34
tetradic
#340A3E #3E1A0A #143E0A #0A2E3E
square
#340A3E #3E1A0A #143E0A #0A2E3E
split-complementary
#340A3E #2E3E0A #0A3E1A
monochromatic
#16041A #16041A #340A3E #601373 #8C1BA7

Accessibility & contrast

On white

16.68
#340A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A3E
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A3E#FFFFFF#000000##FFFFFF
##340A3E1.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3F
Deuteranopia (green-blind)
#0E1F3D
Tritanopia (blue-blind)
#341423
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340a3e;
/* rgb */ color: rgb(52, 10, 62);
/* oklch */ color: oklch(24.8% 0.099 319.1);
Tailwind
colors: {
  custom: {
    50: '#6e4e73',
    500: '#340a3e',
    950: '#000000',
  },
}
SCSS
$custom: #340a3e;
$custom-light: #6e4e73;
$custom-dark: #000000;
JSON
{
  "hex": "#340a3e",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 62
  },
  "hsl": {
    "h": 288.462,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24769,
    "c": 0.09894,
    "h": 319.1
  },
  "luminance": 0.01295
}

Semantic roles & 50–950 ramp

primary
#340A3E
secondary
#387B28
accent
#EF395C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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