#340735#340735

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

Color values

HEX#340735
RGBrgb(52, 7, 53)
HSLhsl(299, 77%, 12%)
HSVhsv(299, 87%, 21%)
CMYKcmyk(1.9%, 86.8%, 0%, 79.2%)
CIE-LABlab(10.10, 28.57, -18.44)
CIE-LCHlch(10.10, 34.00, 327.16°)
OKLaboklab(23.75% 0.0791 -0.0512)
OKLCHoklch(23.75% 0.094 327.1)
XYZxyz(2.1347, 1.1392, 3.4749)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340735 #083507
analogous
#1D0735 #340735 #35071F
triadic
#340735 #353407 #073534
tetradic
#340735 #351D07 #083507 #071F35
square
#340735 #351D07 #083507 #071F35
split-complementary
#340735 #1F3507 #07351D
monochromatic
#1B041B #1B041B #340735 #690E6B #9E15A1

Accessibility & contrast

On white

17.10
#340735 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340735
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340735#FFFFFF#000000##FFFFFF
##3407351.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011836
Deuteranopia (green-blind)
#131E34
Tritanopia (blue-blind)
#360E1D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340735;
/* rgb */ color: rgb(52, 7, 53);
/* oklch */ color: oklch(23.7% 0.094 327.1);
Tailwind
colors: {
  custom: {
    50: '#6e4c6c',
    500: '#340735',
    950: '#000000',
  },
}
SCSS
$custom: #340735;
$custom-light: #6e4c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#340735",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 53
  },
  "hsl": {
    "h": 298.696,
    "s": 76.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23745,
    "c": 0.09423,
    "h": 327.1
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#340735
secondary
#257523
accent
#F33539
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340735

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

Preview Lab → · Contrast checker → · Palette generator →

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