#340239#340239

#340239 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.106 H 324.0°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#340239
RGBrgb(52, 2, 57)
HSLhsl(295, 93%, 12%)
HSVhsv(295, 96%, 22%)
CMYKcmyk(8.8%, 96.5%, 0%, 77.6%)
CIE-LABlab(9.55, 31.84, -22.22)
CIE-LCHlch(9.55, 38.82, 325.09°)
OKLaboklab(23.45% 0.0855 -0.0622)
OKLCHoklch(23.45% 0.106 324)
XYZxyz(2.1763, 1.0690, 3.9618)
Luminance0.0107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340239 #073902
analogous
#190239 #340239 #390223
triadic
#340239 #393402 #023934
tetradic
#340239 #391902 #073902 #022339
square
#340239 #391902 #073902 #022339
split-complementary
#340239 #233902 #023919
monochromatic
#1B011E #1B011E #340239 #6A0474 #A006AF

Accessibility & contrast

On white

17.30
#340239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340239
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340239#FFFFFF#000000##FFFFFF
##3402391.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#0C1D38
Tritanopia (blue-blind)
#350D1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340239;
/* rgb */ color: rgb(52, 2, 57);
/* oklch */ color: oklch(23.5% 0.106 324.0);
Tailwind
colors: {
  custom: {
    50: '#6e4a70',
    500: '#340239',
    950: '#000000',
  },
}
SCSS
$custom: #340239;
$custom-light: #6e4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#340239",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 294.545,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23454,
    "c": 0.10574,
    "h": 324
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#340239
secondary
#237D1A
accent
#FF293C
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340239

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

Preview Lab → · Contrast checker → · Palette generator →

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