#340B47#340B47

#340B47 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.6% C 0.107 H 312.3°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#340B47
RGBrgb(52, 11, 71)
HSLhsl(281, 73%, 16%)
HSVhsv(281, 85%, 28%)
CMYKcmyk(26.8%, 84.5%, 0%, 72.2%)
CIE-LABlab(12.12, 30.85, -28.02)
CIE-LCHlch(12.12, 41.68, 317.75°)
OKLaboklab(25.62% 0.0722 -0.0793)
OKLCHoklch(25.62% 0.107 312.3)
XYZxyz(2.6730, 1.4244, 6.0941)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B47 #1E470B
analogous
#160B47 #340B47 #470B3C
triadic
#340B47 #47340B #0B4734
tetradic
#340B47 #47160B #1E470B #0B3C47
square
#340B47 #47160B #1E470B #0B3C47
split-complementary
#340B47 #3C470B #0B4716
monochromatic
#13041A #13041A #340B47 #5B137C #821BB1

Accessibility & contrast

On white

16.34
#340B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#340B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B47
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B47#FFFFFF#000000##FFFFFF
##340B471.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#042146
Tritanopia (blue-blind)
#321928
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340b47;
/* rgb */ color: rgb(52, 11, 71);
/* oklch */ color: oklch(25.6% 0.107 312.3);
Tailwind
colors: {
  custom: {
    50: '#6e4f7b',
    500: '#340b47',
    950: '#000000',
  },
}
SCSS
$custom: #340b47;
$custom-light: #6e4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#340b47",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 71
  },
  "hsl": {
    "h": 281,
    "s": 73.171,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25622,
    "c": 0.10724,
    "h": 312.3
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#340B47
secondary
#47832A
accent
#F03872
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340B47

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

Preview Lab → · Contrast checker → · Palette generator →

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