#340843#340843

#340843 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 25.0% C 0.107 H 315.6°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#340843
RGBrgb(52, 8, 67)
HSLhsl(285, 79%, 15%)
HSVhsv(285, 88%, 26%)
CMYKcmyk(22.4%, 88.1%, 0%, 73.7%)
CIE-LABlab(11.34, 31.17, -26.48)
CIE-LCHlch(11.34, 40.90, 319.66°)
OKLaboklab(24.97% 0.0762 -0.0747)
OKLCHoklch(24.97% 0.107 315.6)
XYZxyz(2.5160, 1.3091, 5.4292)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340843 #174308
analogous
#170843 #340843 #430835
triadic
#340843 #433408 #084334
tetradic
#340843 #431708 #174308 #083543
square
#340843 #431708 #174308 #083543
split-complementary
#340843 #354308 #084317
monochromatic
#15031B #15031B #340843 #5E0F7A #8915B0

Accessibility & contrast

On white

16.64
#340843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340843
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340843#FFFFFF#000000##FFFFFF
##3408431.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C45
Deuteranopia (green-blind)
#061F42
Tritanopia (blue-blind)
#331625
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340843;
/* rgb */ color: rgb(52, 8, 67);
/* oklch */ color: oklch(25.0% 0.107 315.6);
Tailwind
colors: {
  custom: {
    50: '#6e4e77',
    500: '#340843',
    950: '#000000',
  },
}
SCSS
$custom: #340843;
$custom-light: #6e4e77;
$custom-dark: #000000;
JSON
{
  "hex": "#340843",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 284.746,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24966,
    "c": 0.10673,
    "h": 315.6
  },
  "luminance": 0.01309
}

Semantic roles & 50–950 ramp

primary
#340843
secondary
#3D8125
accent
#F53364
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340843

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

Preview Lab → · Contrast checker → · Palette generator →

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