#340E47#340E47

#340E47 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.103 H 311.8°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#340E47
RGBrgb(52, 14, 71)
HSLhsl(280, 67%, 17%)
HSVhsv(280, 80%, 28%)
CMYKcmyk(26.8%, 80.3%, 0%, 72.2%)
CIE-LABlab(12.60, 29.47, -27.24)
CIE-LCHlch(12.60, 40.13, 317.25°)
OKLaboklab(25.97% 0.0689 -0.077)
OKLCHoklch(25.97% 0.103 311.8)
XYZxyz(2.7103, 1.4991, 6.1066)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E47 #21470E
analogous
#180E47 #340E47 #470E3E
triadic
#340E47 #47340E #0E4734
tetradic
#340E47 #47180E #21470E #0E3E47
square
#340E47 #47180E #21470E #0E3E47
split-complementary
#340E47 #3E470E #0E4718
monochromatic
#13051A #13051A #340E47 #59187A #7F22AD

Accessibility & contrast

On white

16.16
#340E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340E47
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E47#FFFFFF#000000##FFFFFF
##340E471.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#072146
Tritanopia (blue-blind)
#321B29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #340e47;
/* rgb */ color: rgb(52, 14, 71);
/* oklch */ color: oklch(26.0% 0.103 311.8);
Tailwind
colors: {
  custom: {
    50: '#6e517b',
    500: '#340e47',
    950: '#000000',
  },
}
SCSS
$custom: #340e47;
$custom-light: #6e517b;
$custom-dark: #000000;
JSON
{
  "hex": "#340e47",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 71
  },
  "hsl": {
    "h": 280,
    "s": 67.059,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25965,
    "c": 0.10331,
    "h": 311.8
  },
  "luminance": 0.01499
}

Semantic roles & 50–950 ramp

primary
#340E47
secondary
#4B822F
accent
#EA3E77
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340E47

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

Preview Lab → · Contrast checker → · Palette generator →

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