#340E46#340E46

#340E46 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.102 H 312.5°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#340E46
RGBrgb(52, 14, 70)
HSLhsl(281, 67%, 16%)
HSVhsv(281, 80%, 27%)
CMYKcmyk(25.7%, 80%, 0%, 72.5%)
CIE-LABlab(12.52, 29.22, -26.67)
CIE-LCHlch(12.52, 39.56, 317.61°)
OKLaboklab(25.88% 0.069 -0.0753)
OKLCHoklch(25.88% 0.102 312.5)
XYZxyz(2.6785, 1.4864, 5.9390)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E46 #20460E
analogous
#180E46 #340E46 #460E3C
triadic
#340E46 #46340E #0E4634
tetradic
#340E46 #46180E #20460E #0E3C46
square
#340E46 #46180E #20460E #0E3C46
split-complementary
#340E46 #3C460E #0E4618
monochromatic
#13051A #13051A #340E46 #5A1879 #8022AC

Accessibility & contrast

On white

16.19
#340E46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#340E46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E46
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E46#FFFFFF#000000##FFFFFF
##340E461.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#082145
Tritanopia (blue-blind)
#321A29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340e46;
/* rgb */ color: rgb(52, 14, 70);
/* oklch */ color: oklch(25.9% 0.102 312.5);
Tailwind
colors: {
  custom: {
    50: '#6e507a',
    500: '#340e46',
    950: '#000000',
  },
}
SCSS
$custom: #340e46;
$custom-light: #6e507a;
$custom-dark: #000000;
JSON
{
  "hex": "#340e46",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 70
  },
  "hsl": {
    "h": 280.714,
    "s": 66.667,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25881,
    "c": 0.10217,
    "h": 312.5
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#340E46
secondary
#49812F
accent
#EA3E75
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340E46

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

Preview Lab → · Contrast checker → · Palette generator →

#340E46 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva