#340944#340944

#340944 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.2% C 0.106 H 314.7°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#340944
RGBrgb(52, 9, 68)
HSLhsl(284, 77%, 15%)
HSVhsv(284, 87%, 27%)
CMYKcmyk(23.5%, 86.8%, 0%, 73.3%)
CIE-LABlab(11.57, 30.98, -26.80)
CIE-LCHlch(11.57, 40.96, 319.13°)
OKLaboklab(25.16% 0.0749 -0.0757)
OKLCHoklch(25.16% 0.107 314.7)
XYZxyz(2.5571, 1.3429, 5.5922)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340944 #194409
analogous
#170944 #340944 #440936
triadic
#340944 #443409 #094434
tetradic
#340944 #441709 #194409 #093644
square
#340944 #441709 #194409 #093644
split-complementary
#340944 #364409 #094417
monochromatic
#15041B #15041B #340944 #5D107A #8717B0

Accessibility & contrast

On white

16.55
#340944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340944 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340944
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340944#FFFFFF#000000##FFFFFF
##3409441.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340944;
/* rgb */ color: rgb(52, 9, 68);
/* oklch */ color: oklch(25.2% 0.106 314.7);
Tailwind
colors: {
  custom: {
    50: '#6e4e78',
    500: '#340944',
    950: '#000000',
  },
}
SCSS
$custom: #340944;
$custom-light: #6e4e78;
$custom-dark: #000000;
JSON
{
  "hex": "#340944",
  "rgb": {
    "r": 52,
    "g": 9,
    "b": 68
  },
  "hsl": {
    "h": 283.729,
    "s": 76.623,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25157,
    "c": 0.1065,
    "h": 314.7
  },
  "luminance": 0.01343
}

Semantic roles & 50–950 ramp

primary
#340944
secondary
#408227
accent
#F33568
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340944

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

Preview Lab → · Contrast checker → · Palette generator →

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