#340B44#340B44

#340B44 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.4% C 0.104 H 314.4°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#340B44
RGBrgb(52, 11, 68)
HSLhsl(283, 72%, 15%)
HSVhsv(283, 84%, 27%)
CMYKcmyk(23.5%, 83.8%, 0%, 73.3%)
CIE-LABlab(11.87, 30.12, -26.32)
CIE-LCHlch(11.87, 40.00, 318.85°)
OKLaboklab(25.37% 0.0728 -0.0743)
OKLCHoklch(25.37% 0.104 314.4)
XYZxyz(2.5791, 1.3869, 5.5996)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B44 #1B440B
analogous
#170B44 #340B44 #440B37
triadic
#340B44 #44340B #0B4434
tetradic
#340B44 #44170B #1B440B #0B3744
square
#340B44 #44170B #1B440B #0B3744
split-complementary
#340B44 #37440B #0B4417
monochromatic
#14041A #14041A #340B44 #5C1479 #851CAD

Accessibility & contrast

On white

16.44
#340B44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B44
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B44#FFFFFF#000000##FFFFFF
##340B441.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D46
Deuteranopia (green-blind)
#082043
Tritanopia (blue-blind)
#331827
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340b44;
/* rgb */ color: rgb(52, 11, 68);
/* oklch */ color: oklch(25.4% 0.104 314.4);
Tailwind
colors: {
  custom: {
    50: '#6e4f78',
    500: '#340b44',
    950: '#000000',
  },
}
SCSS
$custom: #340b44;
$custom-light: #6e4f78;
$custom-dark: #000000;
JSON
{
  "hex": "#340b44",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 68
  },
  "hsl": {
    "h": 283.158,
    "s": 72.152,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25367,
    "c": 0.104,
    "h": 314.4
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#340B44
secondary
#42812A
accent
#EF396C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340B44

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

Preview Lab → · Contrast checker → · Palette generator →

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