#340833#340833

#340833 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.091 H 329.0°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#340833
RGBrgb(52, 8, 51)
HSLhsl(301, 73%, 12%)
HSVhsv(301, 85%, 20%)
CMYKcmyk(0%, 84.6%, 1.9%, 79.6%)
CIE-LABlab(10.13, 27.69, -16.93)
CIE-LCHlch(10.13, 32.45, 328.55°)
OKLaboklab(23.72% 0.0778 -0.0468)
OKLCHoklch(23.72% 0.091 329)
XYZxyz(2.1005, 1.1429, 3.2413)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340833 #083409
analogous
#1F0834 #340833 #34081D
triadic
#340833 #333408 #083334
tetradic
#340833 #341F08 #083409 #081D34
square
#340833 #341F08 #083409 #081D34
split-complementary
#340833 #1D3408 #08341F
monochromatic
#1B041A #1B041A #340833 #691067 #9E189B

Accessibility & contrast

On white

17.09
#340833 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340833 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340833
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340833#FFFFFF#000000##FFFFFF
##3408331.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031834
Deuteranopia (green-blind)
#141E32
Tritanopia (blue-blind)
#360E1C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340833;
/* rgb */ color: rgb(52, 8, 51);
/* oklch */ color: oklch(23.7% 0.091 329.0);
Tailwind
colors: {
  custom: {
    50: '#6e4d6b',
    500: '#340833',
    950: '#000000',
  },
}
SCSS
$custom: #340833;
$custom-light: #6e4d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340833",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 51
  },
  "hsl": {
    "h": 301.364,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23721,
    "c": 0.09081,
    "h": 329
  },
  "luminance": 0.01143
}

Semantic roles & 50–950 ramp

primary
#340833
secondary
#257327
accent
#F03C38
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340833

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

Preview Lab → · Contrast checker → · Palette generator →

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