#340F3A#340F3A

#340F3A is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.087 H 321.8°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#340F3A
RGBrgb(52, 15, 58)
HSLhsl(292, 59%, 14%)
HSVhsv(292, 74%, 23%)
CMYKcmyk(10.3%, 74.1%, 0%, 77.3%)
CIE-LABlab(11.81, 25.82, -19.33)
CIE-LCHlch(11.81, 32.26, 323.18°)
OKLaboklab(25.08% 0.0685 -0.0539)
OKLCHoklch(25.08% 0.087 321.8)
XYZxyz(2.3506, 1.3773, 4.1442)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F3A #153A0F
analogous
#1F0F3A #340F3A #3A0F2B
triadic
#340F3A #3A340F #0F3A34
tetradic
#340F3A #3A1F0F #153A0F #0F2B3A
square
#340F3A #3A1F0F #153A0F #0F2B3A
split-complementary
#340F3A #2B3A0F #0F3A1F
monochromatic
#160618 #160618 #340F3A #601C6B #8B289B

Accessibility & contrast

On white

16.47
#340F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F3A
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F3A#FFFFFF#000000##FFFFFF
##340F3A1.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051C3B
Deuteranopia (green-blind)
#142139
Tritanopia (blue-blind)
#351622
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340f3a;
/* rgb */ color: rgb(52, 15, 58);
/* oklch */ color: oklch(25.1% 0.087 321.8);
Tailwind
colors: {
  custom: {
    50: '#6d5070',
    500: '#340f3a',
    950: '#000000',
  },
}
SCSS
$custom: #340f3a;
$custom-light: #6d5070;
$custom-dark: #000000;
JSON
{
  "hex": "#340f3a",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 291.628,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25081,
    "c": 0.08716,
    "h": 321.8
  },
  "luminance": 0.01377
}

Semantic roles & 50–950 ramp

primary
#340F3A
secondary
#3A7430
accent
#E2465C
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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