#340F3B#340F3B

#340F3B is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.2% C 0.088 H 320.9°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#340F3B
RGBrgb(52, 15, 59)
HSLhsl(290, 59%, 15%)
HSVhsv(290, 75%, 23%)
CMYKcmyk(11.9%, 74.6%, 0%, 76.9%)
CIE-LABlab(11.87, 26.05, -19.94)
CIE-LCHlch(11.87, 32.81, 322.57°)
OKLaboklab(25.15% 0.0685 -0.0556)
OKLCHoklch(25.15% 0.088 320.9)
XYZxyz(2.3763, 1.3876, 4.2795)
Luminance0.0139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F3B #163B0F
analogous
#1E0F3B #340F3B #3B0F2C
triadic
#340F3B #3B340F #0F3B34
tetradic
#340F3B #3B1E0F #163B0F #0F2C3B
square
#340F3B #3B1E0F #163B0F #0F2C3B
split-complementary
#340F3B #2C3B0F #0F3B1E
monochromatic
#160618 #160618 #340F3B #5F1B6C #8A289D

Accessibility & contrast

On white

16.44
#340F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F3B
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F3B#FFFFFF#000000##FFFFFF
##340F3B1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041D3C
Deuteranopia (green-blind)
#14213A
Tritanopia (blue-blind)
#341623
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340f3b;
/* rgb */ color: rgb(52, 15, 59);
/* oklch */ color: oklch(25.2% 0.088 320.9);
Tailwind
colors: {
  custom: {
    50: '#6d5071',
    500: '#340f3b',
    950: '#000000',
  },
}
SCSS
$custom: #340f3b;
$custom-light: #6d5071;
$custom-dark: #000000;
JSON
{
  "hex": "#340f3b",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 59
  },
  "hsl": {
    "h": 290.455,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25153,
    "c": 0.08827,
    "h": 320.9
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#340F3B
secondary
#3B7530
accent
#E3455E
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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