#340641#340641

#340641 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.6% C 0.107 H 317.3°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#340641
RGBrgb(52, 6, 65)
HSLhsl(287, 83%, 14%)
HSVhsv(287, 91%, 25%)
CMYKcmyk(20%, 90.8%, 0%, 74.5%)
CIE-LABlab(10.86, 31.61, -25.83)
CIE-LCHlch(10.86, 40.82, 320.74°)
OKLaboklab(24.58% 0.0789 -0.0728)
OKLCHoklch(24.58% 0.107 317.3)
XYZxyz(2.4353, 1.2421, 5.1115)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340641 #134106
analogous
#170641 #340641 #410631
triadic
#340641 #413406 #064134
tetradic
#340641 #411706 #134106 #063141
square
#340641 #411706 #134106 #063141
split-complementary
#340641 #314106 #064117
monochromatic
#16031C #16031C #340641 #610B79 #8E10B1

Accessibility & contrast

On white

16.82
#340641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340641
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340641#FFFFFF#000000##FFFFFF
##3406411.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#071F40
Tritanopia (blue-blind)
#331424
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340641;
/* rgb */ color: rgb(52, 6, 65);
/* oklch */ color: oklch(24.6% 0.107 317.3);
Tailwind
colors: {
  custom: {
    50: '#6e4c76',
    500: '#340641',
    950: '#000000',
  },
}
SCSS
$custom: #340641;
$custom-light: #6e4c76;
$custom-dark: #000000;
JSON
{
  "hex": "#340641",
  "rgb": {
    "r": 52,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 286.78,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2458,
    "c": 0.10735,
    "h": 317.3
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#340641
secondary
#378122
accent
#F92E5B
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #340641

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

Preview Lab → · Contrast checker → · Palette generator →

#340641 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva