#340E45#340E45

#340E45 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.8% C 0.101 H 313.2°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#340E45
RGBrgb(52, 14, 69)
HSLhsl(281, 66%, 16%)
HSVhsv(281, 80%, 27%)
CMYKcmyk(24.6%, 79.7%, 0%, 72.9%)
CIE-LABlab(12.44, 28.97, -26.10)
CIE-LCHlch(12.44, 39.00, 317.98°)
OKLaboklab(25.8% 0.0692 -0.0737)
OKLCHoklch(25.8% 0.101 313.2)
XYZxyz(2.6472, 1.4739, 5.7741)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E45 #1F450E
analogous
#190E45 #340E45 #450E3B
triadic
#340E45 #45340E #0E4534
tetradic
#340E45 #45190E #1F450E #0E3B45
square
#340E45 #45190E #1F450E #0E3B45
split-complementary
#340E45 #3B450E #0E4519
monochromatic
#130519 #130519 #340E45 #5A1878 #8123AB

Accessibility & contrast

On white

16.22
#340E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340E45
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E45#FFFFFF#000000##FFFFFF
##340E451.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#092144
Tritanopia (blue-blind)
#321A28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340e45;
/* rgb */ color: rgb(52, 14, 69);
/* oklch */ color: oklch(25.8% 0.101 313.2);
Tailwind
colors: {
  custom: {
    50: '#6e5079',
    500: '#340e45',
    950: '#000000',
  },
}
SCSS
$custom: #340e45;
$custom-light: #6e5079;
$custom-dark: #000000;
JSON
{
  "hex": "#340e45",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 69
  },
  "hsl": {
    "h": 281.455,
    "s": 66.265,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25798,
    "c": 0.10104,
    "h": 313.2
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#340E45
secondary
#48802F
accent
#E93F73
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340E45

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

Preview Lab → · Contrast checker → · Palette generator →

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