#340333#340333

#340333 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.1% C 0.099 H 329.1°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#340333
RGBrgb(52, 3, 51)
HSLhsl(301, 89%, 11%)
HSVhsv(301, 94%, 20%)
CMYKcmyk(0%, 94.2%, 1.9%, 79.6%)
CIE-LABlab(9.27, 30.15, -18.29)
CIE-LCHlch(9.27, 35.27, 328.76°)
OKLaboklab(23.11% 0.0848 -0.0507)
OKLCHoklch(23.11% 0.099 329.1)
XYZxyz(2.0463, 1.0344, 3.2232)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340333 #033404
analogous
#1C0334 #340333 #34031A
triadic
#340333 #333403 #033334
tetradic
#340333 #341C03 #033404 #031A34
square
#340333 #341C03 #033404 #031A34
split-complementary
#340333 #1A3403 #03341C
monochromatic
#1D021C #1D021C #340333 #6E066C #A80AA4

Accessibility & contrast

On white

17.40
#340333 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#340333 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340333
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340333#FFFFFF#000000##FFFFFF
##3403331.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001634
Deuteranopia (green-blind)
#121C32
Tritanopia (blue-blind)
#360A1B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340333;
/* rgb */ color: rgb(52, 3, 51);
/* oklch */ color: oklch(23.1% 0.099 329.1);
Tailwind
colors: {
  custom: {
    50: '#6e4a6b',
    500: '#340333',
    950: '#000000',
  },
}
SCSS
$custom: #340333;
$custom-light: #6e4a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340333",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 51
  },
  "hsl": {
    "h": 301.224,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.23112,
    "c": 0.09883,
    "h": 329.1
  },
  "luminance": 0.01034
}

Semantic roles & 50–950 ramp

primary
#340333
secondary
#1C771D
accent
#FF2D29
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340333

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

Preview Lab → · Contrast checker → · Palette generator →

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