#340844#340844

#340844 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.1% C 0.108 H 314.9°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#340844
RGBrgb(52, 8, 68)
HSLhsl(284, 79%, 15%)
HSVhsv(284, 88%, 27%)
CMYKcmyk(23.5%, 88.2%, 0%, 73.3%)
CIE-LABlab(11.42, 31.41, -27.05)
CIE-LCHlch(11.42, 41.45, 319.27°)
OKLaboklab(25.05% 0.076 -0.0764)
OKLCHoklch(25.05% 0.108 314.9)
XYZxyz(2.5462, 1.3212, 5.5886)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340844 #184408
analogous
#160844 #340844 #440836
triadic
#340844 #443408 #084434
tetradic
#340844 #441608 #184408 #083644
square
#340844 #441608 #184408 #083644
split-complementary
#340844 #364408 #084416
monochromatic
#15031B #15031B #340844 #5E0E7B #8815B2

Accessibility & contrast

On white

16.61
#340844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340844 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340844
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340844#FFFFFF#000000##FFFFFF
##3408441.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C46
Deuteranopia (green-blind)
#051F43
Tritanopia (blue-blind)
#331626
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340844;
/* rgb */ color: rgb(52, 8, 68);
/* oklch */ color: oklch(25.1% 0.108 314.9);
Tailwind
colors: {
  custom: {
    50: '#6e4e78',
    500: '#340844',
    950: '#000000',
  },
}
SCSS
$custom: #340844;
$custom-light: #6e4e78;
$custom-dark: #000000;
JSON
{
  "hex": "#340844",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 284,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25052,
    "c": 0.10776,
    "h": 314.9
  },
  "luminance": 0.01321
}

Semantic roles & 50–950 ramp

primary
#340844
secondary
#3E8226
accent
#F53266
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #340844

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

Preview Lab → · Contrast checker → · Palette generator →

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