#340346#340346

#340346 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.7% C 0.116 H 314.2°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#340346
RGBrgb(52, 3, 70)
HSLhsl(284, 92%, 14%)
HSVhsv(284, 96%, 27%)
CMYKcmyk(25.7%, 95.7%, 0%, 72.5%)
CIE-LABlab(10.83, 34.11, -29.41)
CIE-LCHlch(10.83, 45.04, 319.23°)
OKLaboklab(24.69% 0.081 -0.0833)
OKLCHoklch(24.69% 0.116 314.2)
XYZxyz(2.5540, 1.2375, 5.8975)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340346 #154603
analogous
#130346 #340346 #460337
triadic
#340346 #463403 #034634
tetradic
#340346 #461303 #154603 #033746
square
#340346 #461303 #154603 #033746
split-complementary
#340346 #374603 #034613
monochromatic
#16011D #16011D #340346 #600681 #8B08BB

Accessibility & contrast

On white

16.84
#340346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340346 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340346
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340346#FFFFFF#000000##FFFFFF
##3403461.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#321426
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340346;
/* rgb */ color: rgb(52, 3, 70);
/* oklch */ color: oklch(24.7% 0.116 314.2);
Tailwind
colors: {
  custom: {
    50: '#6f4b7a',
    500: '#340346',
    950: '#000000',
  },
}
SCSS
$custom: #340346;
$custom-light: #6f4b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#340346",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 283.881,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24694,
    "c": 0.11618,
    "h": 314.2
  },
  "luminance": 0.01237
}

Semantic roles & 50–950 ramp

primary
#340346
secondary
#3A871D
accent
#FF2962
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#080109
muted
#7B777B

Preview Lab

Preview with #340346

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

Preview Lab → · Contrast checker → · Palette generator →

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