#340C43#340C43

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

Color values

HEX#340C43
RGBrgb(52, 12, 67)
HSLhsl(284, 70%, 15%)
HSVhsv(284, 82%, 26%)
CMYKcmyk(22.4%, 82.1%, 0%, 73.7%)
CIE-LABlab(11.95, 29.43, -25.50)
CIE-LCHlch(11.95, 38.94, 319.10°)
OKLaboklab(25.4% 0.0718 -0.0719)
OKLCHoklch(25.4% 0.102 315)
XYZxyz(2.5606, 1.3983, 5.4441)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C43 #1B430C
analogous
#180C43 #340C43 #430C36
triadic
#340C43 #43340C #0C4334
tetradic
#340C43 #43180C #1B430C #0C3643
square
#340C43 #43180C #1B430C #0C3643
split-complementary
#340C43 #36430C #0C4318
monochromatic
#14051A #14051A #340C43 #5C1577 #851FAB

Accessibility & contrast

On white

16.41
#340C43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C43
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C43#FFFFFF#000000##FFFFFF
##340C431.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D45
Deuteranopia (green-blind)
#0A2042
Tritanopia (blue-blind)
#331826
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340c43;
/* rgb */ color: rgb(52, 12, 67);
/* oklch */ color: oklch(25.4% 0.102 315.0);
Tailwind
colors: {
  custom: {
    50: '#6e4f77',
    500: '#340c43',
    950: '#000000',
  },
}
SCSS
$custom: #340c43;
$custom-light: #6e4f77;
$custom-dark: #000000;
JSON
{
  "hex": "#340c43",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 67
  },
  "hsl": {
    "h": 283.636,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25396,
    "c": 0.1016,
    "h": 315
  },
  "luminance": 0.01398
}

Semantic roles & 50–950 ramp

primary
#340C43
secondary
#427F2C
accent
#EC3B6C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340C43

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

Preview Lab → · Contrast checker → · Palette generator →

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