#340647#340647

#340647 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.1% C 0.113 H 313.1°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#340647
RGBrgb(52, 6, 71)
HSLhsl(282, 84%, 15%)
HSVhsv(282, 92%, 28%)
CMYKcmyk(26.8%, 91.5%, 0%, 72.2%)
CIE-LABlab(11.38, 32.98, -29.22)
CIE-LCHlch(11.38, 44.06, 318.46°)
OKLaboklab(25.11% 0.0774 -0.0827)
OKLCHoklch(25.11% 0.113 313.1)
XYZxyz(2.6184, 1.3153, 6.0760)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340647 #194706
analogous
#140647 #340647 #470639
triadic
#340647 #473406 #064734
tetradic
#340647 #471406 #194706 #063947
square
#340647 #471406 #194706 #063947
split-complementary
#340647 #394706 #064714
monochromatic
#15021C #15021C #340647 #5D0B7F #8710B8

Accessibility & contrast

On white

16.63
#340647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340647 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340647
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340647#FFFFFF#000000##FFFFFF
##3406471.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#321727
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340647;
/* rgb */ color: rgb(52, 6, 71);
/* oklch */ color: oklch(25.1% 0.113 313.1);
Tailwind
colors: {
  custom: {
    50: '#6f4d7b',
    500: '#340647',
    950: '#000000',
  },
}
SCSS
$custom: #340647;
$custom-light: #6f4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#340647",
  "rgb": {
    "r": 52,
    "g": 6,
    "b": 71
  },
  "hsl": {
    "h": 282.462,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25105,
    "c": 0.11331,
    "h": 313.1
  },
  "luminance": 0.01315
}

Semantic roles & 50–950 ramp

primary
#340647
secondary
#408623
accent
#FB2D69
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#080109
muted
#7B777B

Preview Lab

Preview with #340647

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

Preview Lab → · Contrast checker → · Palette generator →

#340647 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva