#340847#340847

#340847 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.111 H 312.8°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#340847
RGBrgb(52, 8, 71)
HSLhsl(282, 80%, 15%)
HSVhsv(282, 89%, 28%)
CMYKcmyk(26.8%, 88.7%, 0%, 72.2%)
CIE-LABlab(11.68, 32.11, -28.73)
CIE-LCHlch(11.68, 43.09, 318.18°)
OKLaboklab(25.31% 0.0753 -0.0813)
OKLCHoklch(25.31% 0.111 312.8)
XYZxyz(2.6401, 1.3587, 6.0832)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340847 #1B4708
analogous
#140847 #340847 #47083A
triadic
#340847 #473408 #084734
tetradic
#340847 #471408 #1B4708 #083A47
square
#340847 #471408 #1B4708 #083A47
split-complementary
#340847 #3A4708 #084714
monochromatic
#14031C #14031C #340847 #5C0E7E #8514B5

Accessibility & contrast

On white

16.51
#340847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340847
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340847#FFFFFF#000000##FFFFFF
##3408471.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#012046
Tritanopia (blue-blind)
#321828
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340847;
/* rgb */ color: rgb(52, 8, 71);
/* oklch */ color: oklch(25.3% 0.111 312.8);
Tailwind
colors: {
  custom: {
    50: '#6f4e7b',
    500: '#340847',
    950: '#000000',
  },
}
SCSS
$custom: #340847;
$custom-light: #6f4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#340847",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 281.905,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25314,
    "c": 0.11084,
    "h": 312.8
  },
  "luminance": 0.01359
}

Semantic roles & 50–950 ramp

primary
#340847
secondary
#428526
accent
#F6326D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340847

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

Preview Lab → · Contrast checker → · Palette generator →

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