#340B43#340B43

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

Color values

HEX#340B43
RGBrgb(52, 11, 67)
HSLhsl(284, 72%, 15%)
HSVhsv(284, 84%, 26%)
CMYKcmyk(22.4%, 83.6%, 0%, 73.7%)
CIE-LABlab(11.79, 29.88, -25.75)
CIE-LCHlch(11.79, 39.44, 319.24°)
OKLaboklab(25.28% 0.073 -0.0726)
OKLCHoklch(25.28% 0.103 315.1)
XYZxyz(2.5488, 1.3748, 5.4402)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B43 #1A430B
analogous
#180B43 #340B43 #430B36
triadic
#340B43 #43340B #0B4334
tetradic
#340B43 #43180B #1A430B #0B3643
square
#340B43 #43180B #1A430B #0B3643
split-complementary
#340B43 #36430B #0B4318
monochromatic
#14041A #14041A #340B43 #5D1478 #861CAC

Accessibility & contrast

On white

16.47
#340B43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340B43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B43
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B43#FFFFFF#000000##FFFFFF
##340B431.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D45
Deuteranopia (green-blind)
#092042
Tritanopia (blue-blind)
#331726
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340b43;
/* rgb */ color: rgb(52, 11, 67);
/* oklch */ color: oklch(25.3% 0.103 315.1);
Tailwind
colors: {
  custom: {
    50: '#6e4f77',
    500: '#340b43',
    950: '#000000',
  },
}
SCSS
$custom: #340b43;
$custom-light: #6e4f77;
$custom-dark: #000000;
JSON
{
  "hex": "#340b43",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 67
  },
  "hsl": {
    "h": 283.929,
    "s": 71.795,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25284,
    "c": 0.10293,
    "h": 315.1
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

primary
#340B43
secondary
#41802A
accent
#EF396A
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340B43

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

Preview Lab → · Contrast checker → · Palette generator →

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