#340A47#340A47

#340A47 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.108 H 312.5°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#340A47
RGBrgb(52, 10, 71)
HSLhsl(281, 75%, 16%)
HSVhsv(281, 86%, 28%)
CMYKcmyk(26.8%, 85.9%, 0%, 72.2%)
CIE-LABlab(11.97, 31.27, -28.26)
CIE-LCHlch(11.97, 42.15, 317.89°)
OKLaboklab(25.52% 0.0733 -0.08)
OKLCHoklch(25.52% 0.108 312.5)
XYZxyz(2.6618, 1.4022, 6.0904)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A47 #1D470A
analogous
#150A47 #340A47 #470A3B
triadic
#340A47 #47340A #0A4734
tetradic
#340A47 #47150A #1D470A #0A3B47
square
#340A47 #47150A #1D470A #0A3B47
split-complementary
#340A47 #3B470A #0A4715
monochromatic
#14041B #14041B #340A47 #5B127D #8319B2

Accessibility & contrast

On white

16.40
#340A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A47
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A47#FFFFFF#000000##FFFFFF
##340A471.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#032046
Tritanopia (blue-blind)
#321928
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340a47;
/* rgb */ color: rgb(52, 10, 71);
/* oklch */ color: oklch(25.5% 0.108 312.5);
Tailwind
colors: {
  custom: {
    50: '#6e4f7b',
    500: '#340a47',
    950: '#000000',
  },
}
SCSS
$custom: #340a47;
$custom-light: #6e4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#340a47",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 281.311,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25519,
    "c": 0.10845,
    "h": 312.5
  },
  "luminance": 0.01402
}

Semantic roles & 50–950 ramp

primary
#340A47
secondary
#458429
accent
#F23670
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340A47

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

Preview Lab → · Contrast checker → · Palette generator →

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