#340F40#340F40

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

Color values

HEX#340F40
RGBrgb(52, 15, 64)
HSLhsl(285, 62%, 15%)
HSVhsv(285, 77%, 25%)
CMYKcmyk(18.8%, 76.6%, 0%, 74.9%)
CIE-LABlab(12.23, 27.24, -22.92)
CIE-LCHlch(12.23, 35.60, 319.93°)
OKLaboklab(25.53% 0.0684 -0.0643)
OKLCHoklch(25.53% 0.094 316.7)
XYZxyz(2.5123, 1.4420, 4.9955)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F40 #1B400F
analogous
#1B0F40 #340F40 #400F33
triadic
#340F40 #40340F #0F4034
tetradic
#340F40 #401B0F #1B400F #0F3340
square
#340F40 #401B0F #1B400F #0F3340
split-complementary
#340F40 #33400F #0F401B
monochromatic
#140619 #140619 #340F40 #5C1B72 #8526A3

Accessibility & contrast

On white

16.30
#340F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#340F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F40
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F40#FFFFFF#000000##FFFFFF
##340F401.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#10213F
Tritanopia (blue-blind)
#331826
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340f40;
/* rgb */ color: rgb(52, 15, 64);
/* oklch */ color: oklch(25.5% 0.094 316.7);
Tailwind
colors: {
  custom: {
    50: '#6e5175',
    500: '#340f40',
    950: '#000000',
  },
}
SCSS
$custom: #340f40;
$custom-light: #6e5175;
$custom-dark: #000000;
JSON
{
  "hex": "#340f40",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 285.306,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25528,
    "c": 0.09389,
    "h": 316.7
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#340F40
secondary
#427A30
accent
#E5436A
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340F40

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

Preview Lab → · Contrast checker → · Palette generator →

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