#340340#340340

#340340 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.111 H 318.4°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#340340
RGBrgb(52, 3, 64)
HSLhsl(288, 91%, 13%)
HSVhsv(288, 95%, 25%)
CMYKcmyk(18.8%, 95.3%, 0%, 74.9%)
CIE-LABlab(10.30, 32.79, -26.03)
CIE-LCHlch(10.30, 41.87, 321.56°)
OKLaboklab(24.16% 0.0827 -0.0734)
OKLCHoklch(24.16% 0.111 318.4)
XYZxyz(2.3740, 1.1655, 4.9494)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340340 #0F4003
analogous
#150340 #340340 #40032D
triadic
#340340 #403403 #034034
tetradic
#340340 #401503 #0F4003 #032D40
square
#340340 #401503 #0F4003 #032D40
split-complementary
#340340 #2D4003 #034015
monochromatic
#18011D #18011D #340340 #63067A #9308B5

Accessibility & contrast

On white

17.03
#340340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340340
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340340#FFFFFF#000000##FFFFFF
##3403401.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#061E3F
Tritanopia (blue-blind)
#341122
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340340;
/* rgb */ color: rgb(52, 3, 64);
/* oklch */ color: oklch(24.2% 0.111 318.4);
Tailwind
colors: {
  custom: {
    50: '#6e4b75',
    500: '#340340',
    950: '#000000',
  },
}
SCSS
$custom: #340340;
$custom-light: #6e4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#340340",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 288.197,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24159,
    "c": 0.11056,
    "h": 318.4
  },
  "luminance": 0.01165
}

Semantic roles & 50–950 ramp

primary
#340340
secondary
#31821D
accent
#FF2953
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #340340

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

Preview Lab → · Contrast checker → · Palette generator →

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