#340C47#340C47

#340C47 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.7% C 0.106 H 312.2°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#340C47
RGBrgb(52, 12, 71)
HSLhsl(281, 71%, 16%)
HSVhsv(281, 83%, 28%)
CMYKcmyk(26.8%, 83.1%, 0%, 72.2%)
CIE-LABlab(12.27, 30.41, -27.77)
CIE-LCHlch(12.27, 41.18, 317.59°)
OKLaboklab(25.73% 0.0711 -0.0785)
OKLCHoklch(25.73% 0.106 312.2)
XYZxyz(2.6848, 1.4480, 6.0981)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C47 #1F470C
analogous
#170C47 #340C47 #470C3D
triadic
#340C47 #47340C #0C4734
tetradic
#340C47 #47170C #1F470C #0C3D47
square
#340C47 #47170C #1F470C #0C3D47
split-complementary
#340C47 #3D470C #0C4717
monochromatic
#13041A #13041A #340C47 #5A157B #811EB0

Accessibility & contrast

On white

16.28
#340C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C47
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C47#FFFFFF#000000##FFFFFF
##340C471.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#052146
Tritanopia (blue-blind)
#321A29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #340c47;
/* rgb */ color: rgb(52, 12, 71);
/* oklch */ color: oklch(25.7% 0.106 312.2);
Tailwind
colors: {
  custom: {
    50: '#6e507b',
    500: '#340c47',
    950: '#000000',
  },
}
SCSS
$custom: #340c47;
$custom-light: #6e507b;
$custom-dark: #000000;
JSON
{
  "hex": "#340c47",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 280.678,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25731,
    "c": 0.10598,
    "h": 312.2
  },
  "luminance": 0.01448
}

Semantic roles & 50–950 ramp

primary
#340C47
secondary
#48832C
accent
#EE3A74
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #340C47

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

Preview Lab → · Contrast checker → · Palette generator →

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