#340C3E#340C3E

#340C3E is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 25.0% C 0.096 H 318.8°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#340C3E
RGBrgb(52, 12, 62)
HSLhsl(288, 68%, 15%)
HSVhsv(288, 81%, 24%)
CMYKcmyk(16.1%, 80.6%, 0%, 75.7%)
CIE-LABlab(11.56, 28.25, -22.58)
CIE-LCHlch(11.56, 36.16, 321.36°)
OKLaboklab(25% 0.0724 -0.0633)
OKLCHoklch(25% 0.096 318.8)
XYZxyz(2.4170, 1.3409, 4.6880)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C3E #163E0C
analogous
#1B0C3E #340C3E #3E0C2F
triadic
#340C3E #3E340C #0C3E34
tetradic
#340C3E #3E1B0C #163E0C #0C2F3E
square
#340C3E #3E1B0C #163E0C #0C2F3E
split-complementary
#340C3E #2F3E0C #0C3E1B
monochromatic
#16051A #16051A #340C3E #5F1671 #8A20A5

Accessibility & contrast

On white

16.56
#340C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340C3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C3E
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C3E#FFFFFF#000000##FFFFFF
##340C3E1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#0F203D
Tritanopia (blue-blind)
#341624
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340c3e;
/* rgb */ color: rgb(52, 12, 62);
/* oklch */ color: oklch(25.0% 0.096 318.8);
Tailwind
colors: {
  custom: {
    50: '#6e4f73',
    500: '#340c3e',
    950: '#000000',
  },
}
SCSS
$custom: #340c3e;
$custom-light: #6e4f73;
$custom-dark: #000000;
JSON
{
  "hex": "#340c3e",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 288,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24996,
    "c": 0.09618,
    "h": 318.8
  },
  "luminance": 0.01341
}

Semantic roles & 50–950 ramp

primary
#340C3E
secondary
#3B7A2C
accent
#EA3D60
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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