#340940#340940

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

Color values

HEX#340940
RGBrgb(52, 9, 64)
HSLhsl(287, 75%, 14%)
HSVhsv(287, 86%, 25%)
CMYKcmyk(18.8%, 85.9%, 0%, 74.9%)
CIE-LABlab(11.25, 30.04, -24.51)
CIE-LCHlch(11.25, 38.77, 320.80°)
OKLaboklab(24.82% 0.0756 -0.0689)
OKLCHoklch(24.82% 0.102 317.6)
XYZxyz(2.4391, 1.2957, 4.9711)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340940 #154009
analogous
#190940 #340940 #400931
triadic
#340940 #403409 #094034
tetradic
#340940 #401909 #154009 #093140
square
#340940 #401909 #154009 #093140
split-complementary
#340940 #314009 #094019
monochromatic
#16041B #16041B #340940 #601176 #8B18AB

Accessibility & contrast

On white

16.68
#340940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340940
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340940#FFFFFF#000000##FFFFFF
##3409401.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#0B1F3F
Tritanopia (blue-blind)
#341524
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340940;
/* rgb */ color: rgb(52, 9, 64);
/* oklch */ color: oklch(24.8% 0.102 317.6);
Tailwind
colors: {
  custom: {
    50: '#6e4e75',
    500: '#340940',
    950: '#000000',
  },
}
SCSS
$custom: #340940;
$custom-light: #6e4e75;
$custom-dark: #000000;
JSON
{
  "hex": "#340940",
  "rgb": {
    "r": 52,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 286.909,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24823,
    "c": 0.10234,
    "h": 317.6
  },
  "luminance": 0.01296
}

Semantic roles & 50–950 ramp

primary
#340940
secondary
#3A7E27
accent
#F2365F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340940

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

Preview Lab → · Contrast checker → · Palette generator →

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