#340E3F#340E3F

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

Color values

HEX#340E3F
RGBrgb(52, 14, 63)
HSLhsl(287, 64%, 15%)
HSVhsv(287, 78%, 25%)
CMYKcmyk(17.5%, 77.8%, 0%, 75.3%)
CIE-LABlab(11.98, 27.51, -22.62)
CIE-LCHlch(11.98, 35.62, 320.57°)
OKLaboklab(25.32% 0.0698 -0.0635)
OKLCHoklch(25.32% 0.094 317.7)
XYZxyz(2.4703, 1.4031, 4.8424)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E3F #193F0E
analogous
#1C0E3F #340E3F #3F0E31
triadic
#340E3F #3F340E #0E3F34
tetradic
#340E3F #3F1C0E #193F0E #0E313F
square
#340E3F #3F1C0E #193F0E #0E313F
split-complementary
#340E3F #313F0E #0E3F1C
monochromatic
#150619 #150619 #340E3F #5D1971 #8724A3

Accessibility & contrast

On white

16.40
#340E3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340E3F
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E3F#FFFFFF#000000##FFFFFF
##340E3F1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#10213E
Tritanopia (blue-blind)
#341725
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340e3f;
/* rgb */ color: rgb(52, 14, 63);
/* oklch */ color: oklch(25.3% 0.094 317.7);
Tailwind
colors: {
  custom: {
    50: '#6e5074',
    500: '#340e3f',
    950: '#000000',
  },
}
SCSS
$custom: #340e3f;
$custom-light: #6e5074;
$custom-dark: #000000;
JSON
{
  "hex": "#340e3f",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 63
  },
  "hsl": {
    "h": 286.531,
    "s": 63.636,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2532,
    "c": 0.09431,
    "h": 317.7
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#340E3F
secondary
#407A2F
accent
#E74166
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340E3F

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

Preview Lab → · Contrast checker → · Palette generator →

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