#340446#340446

#340446 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.8% C 0.115 H 314.1°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#340446
RGBrgb(52, 4, 70)
HSLhsl(284, 89%, 15%)
HSVhsv(284, 94%, 27%)
CMYKcmyk(25.7%, 94.3%, 0%, 72.5%)
CIE-LABlab(10.99, 33.65, -29.16)
CIE-LCHlch(10.99, 44.52, 319.09°)
OKLaboklab(24.8% 0.0799 -0.0825)
OKLCHoklch(24.8% 0.115 314.1)
XYZxyz(2.5649, 1.2592, 5.9011)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340446 #164604
analogous
#130446 #340446 #460437
triadic
#340446 #463404 #044634
tetradic
#340446 #461304 #164604 #043746
square
#340446 #461304 #164604 #043746
split-complementary
#340446 #374604 #044613
monochromatic
#16021D #16021D #340446 #5F0780 #8A0BBA

Accessibility & contrast

On white

16.78
#340446 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340446
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340446#FFFFFF#000000##FFFFFF
##3404461.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340446;
/* rgb */ color: rgb(52, 4, 70);
/* oklch */ color: oklch(24.8% 0.115 314.1);
Tailwind
colors: {
  custom: {
    50: '#6f4c7a',
    500: '#340446',
    950: '#000000',
  },
}
SCSS
$custom: #340446;
$custom-light: #6f4c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#340446",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 70
  },
  "hsl": {
    "h": 283.636,
    "s": 89.189,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24802,
    "c": 0.11488,
    "h": 314.1
  },
  "luminance": 0.01259
}

Semantic roles & 50–950 ramp

primary
#340446
secondary
#3B871F
accent
#FF2963
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#080109
muted
#7B777B

Preview Lab

Preview with #340446

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

Preview Lab → · Contrast checker → · Palette generator →

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