#340C45#340C45

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

Color values

HEX#340C45
RGBrgb(52, 12, 69)
HSLhsl(282, 70%, 16%)
HSVhsv(282, 83%, 27%)
CMYKcmyk(24.6%, 82.6%, 0%, 72.9%)
CIE-LABlab(12.11, 29.91, -26.64)
CIE-LCHlch(12.11, 40.06, 318.31°)
OKLaboklab(25.56% 0.0715 -0.0752)
OKLCHoklch(25.56% 0.104 313.5)
XYZxyz(2.6216, 1.4228, 5.7656)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C45 #1D450C
analogous
#170C45 #340C45 #450C39
triadic
#340C45 #45340C #0C4534
tetradic
#340C45 #45170C #1D450C #0C3945
square
#340C45 #45170C #1D450C #0C3945
split-complementary
#340C45 #39450C #0C4517
monochromatic
#14051A #14051A #340C45 #5B1579 #831EAD

Accessibility & contrast

On white

16.35
#340C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C45
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C45#FFFFFF#000000##FFFFFF
##340C451.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#072144
Tritanopia (blue-blind)
#321928
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340c45;
/* rgb */ color: rgb(52, 12, 69);
/* oklch */ color: oklch(25.6% 0.104 313.5);
Tailwind
colors: {
  custom: {
    50: '#6e4f79',
    500: '#340c45',
    950: '#000000',
  },
}
SCSS
$custom: #340c45;
$custom-light: #6e4f79;
$custom-dark: #000000;
JSON
{
  "hex": "#340c45",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 282.105,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25562,
    "c": 0.10379,
    "h": 313.5
  },
  "luminance": 0.01423
}

Semantic roles & 50–950 ramp

primary
#340C45
secondary
#45812C
accent
#ED3B70
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340C45

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

Preview Lab → · Contrast checker → · Palette generator →

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