#340C46#340C46

#340C46 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.6% C 0.105 H 312.8°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#340C46
RGBrgb(52, 12, 70)
HSLhsl(281, 71%, 16%)
HSVhsv(281, 83%, 27%)
CMYKcmyk(25.7%, 82.9%, 0%, 72.5%)
CIE-LABlab(12.19, 30.16, -27.21)
CIE-LCHlch(12.19, 40.62, 317.94°)
OKLaboklab(25.65% 0.0713 -0.0769)
OKLCHoklch(25.65% 0.105 312.8)
XYZxyz(2.6529, 1.4353, 5.9305)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C46 #1E460C
analogous
#170C46 #340C46 #460C3B
triadic
#340C46 #46340C #0C4634
tetradic
#340C46 #46170C #1E460C #0C3B46
square
#340C46 #46170C #1E460C #0C3B46
split-complementary
#340C46 #3B460C #0C4617
monochromatic
#13041A #13041A #340C46 #5B157A #821EAE

Accessibility & contrast

On white

16.32
#340C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#340C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C46
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C46#FFFFFF#000000##FFFFFF
##340C461.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E48
Deuteranopia (green-blind)
#062145
Tritanopia (blue-blind)
#321928
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340c46;
/* rgb */ color: rgb(52, 12, 70);
/* oklch */ color: oklch(25.6% 0.105 312.8);
Tailwind
colors: {
  custom: {
    50: '#6e4f7a',
    500: '#340c46',
    950: '#000000',
  },
}
SCSS
$custom: #340c46;
$custom-light: #6e4f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#340c46",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 281.379,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25646,
    "c": 0.10488,
    "h": 312.8
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#340C46
secondary
#47822C
accent
#ED3A72
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340C46

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

Preview Lab → · Contrast checker → · Palette generator →

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