#340F33#340F33

#340F33 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.080 H 328.7°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#340F33
RGBrgb(52, 15, 51)
HSLhsl(302, 55%, 13%)
HSVhsv(302, 71%, 20%)
CMYKcmyk(0%, 71.2%, 1.9%, 79.6%)
CIE-LABlab(11.35, 24.26, -15.00)
CIE-LCHlch(11.35, 28.53, 328.27°)
OKLaboklab(24.6% 0.0681 -0.0413)
OKLCHoklch(24.6% 0.08 328.7)
XYZxyz(2.1845, 1.3109, 3.2693)
Luminance0.0131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F33 #0F3410
analogous
#220F34 #340F33 #340F20
triadic
#340F33 #33340F #0F3334
tetradic
#340F33 #34220F #0F3410 #0F2034
square
#340F33 #34220F #0F3410 #0F2034
split-complementary
#340F33 #20340F #0F3422
monochromatic
#180717 #180717 #340F33 #631D62 #932A90

Accessibility & contrast

On white

16.64
#340F33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340F33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F33
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F33#FFFFFF#000000##FFFFFF
##340F331.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1B34
Deuteranopia (green-blind)
#182032
Tritanopia (blue-blind)
#36131F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340f33;
/* rgb */ color: rgb(52, 15, 51);
/* oklch */ color: oklch(24.6% 0.080 328.7);
Tailwind
colors: {
  custom: {
    50: '#6d506b',
    500: '#340f33',
    950: '#000000',
  },
}
SCSS
$custom: #340f33;
$custom-light: #6d506b;
$custom-dark: #000000;
JSON
{
  "hex": "#340f33",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 51
  },
  "hsl": {
    "h": 301.622,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24604,
    "c": 0.07962,
    "h": 328.7
  },
  "luminance": 0.01311
}

Semantic roles & 50–950 ramp

primary
#340F33
secondary
#316E32
accent
#DF4D49
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340F33

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

Preview Lab → · Contrast checker → · Palette generator →

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