#340F46#340F46

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

Color values

HEX#340F46
RGBrgb(52, 15, 70)
HSLhsl(280, 65%, 17%)
HSVhsv(280, 79%, 27%)
CMYKcmyk(25.7%, 78.6%, 0%, 72.5%)
CIE-LABlab(12.70, 28.72, -26.39)
CIE-LCHlch(12.70, 39.01, 317.42°)
OKLaboklab(26.01% 0.0678 -0.0745)
OKLCHoklch(26.01% 0.101 312.3)
XYZxyz(2.6923, 1.5140, 5.9436)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F46 #21460F
analogous
#190F46 #340F46 #460F3D
triadic
#340F46 #46340F #0F4634
tetradic
#340F46 #46190F #21460F #0F3D46
square
#340F46 #46190F #21460F #0F3D46
split-complementary
#340F46 #3D460F #0F4619
monochromatic
#130519 #130519 #340F46 #591A78 #7F25AB

Accessibility & contrast

On white

16.12
#340F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F46
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F46#FFFFFF#000000##FFFFFF
##340F461.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340f46;
/* rgb */ color: rgb(52, 15, 70);
/* oklch */ color: oklch(26.0% 0.101 312.3);
Tailwind
colors: {
  custom: {
    50: '#6e517a',
    500: '#340f46',
    950: '#000000',
  },
}
SCSS
$custom: #340f46;
$custom-light: #6e517a;
$custom-dark: #000000;
JSON
{
  "hex": "#340f46",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 280.364,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.26006,
    "c": 0.10074,
    "h": 312.3
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#340F46
secondary
#4B8030
accent
#E84077
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340F46

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

Preview Lab → · Contrast checker → · Palette generator →

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