#340738#340738

#340738 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.097 H 324.4°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#340738
RGBrgb(52, 7, 56)
HSLhsl(295, 78%, 12%)
HSVhsv(295, 88%, 22%)
CMYKcmyk(7.1%, 87.5%, 0%, 78%)
CIE-LABlab(10.32, 29.19, -20.27)
CIE-LCHlch(10.32, 35.53, 325.22°)
OKLaboklab(23.97% 0.079 -0.0565)
OKLCHoklch(23.97% 0.097 324.4)
XYZxyz(2.2059, 1.1677, 3.8498)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340738 #0B3807
analogous
#1C0738 #340738 #380724
triadic
#340738 #383407 #073834
tetradic
#340738 #381C07 #0B3807 #072438
square
#340738 #381C07 #0B3807 #072438
split-complementary
#340738 #243807 #07381C
monochromatic
#19031B #19031B #340738 #670E6E #9915A5

Accessibility & contrast

On white

17.02
#340738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340738
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340738#FFFFFF#000000##FFFFFF
##3407381.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001939
Deuteranopia (green-blind)
#111E37
Tritanopia (blue-blind)
#35101F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340738;
/* rgb */ color: rgb(52, 7, 56);
/* oklch */ color: oklch(24.0% 0.097 324.4);
Tailwind
colors: {
  custom: {
    50: '#6e4c6f',
    500: '#340738',
    950: '#000000',
  },
}
SCSS
$custom: #340738;
$custom-light: #6e4c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340738",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 295.102,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23968,
    "c": 0.09711,
    "h": 324.4
  },
  "luminance": 0.01168
}

Semantic roles & 50–950 ramp

primary
#340738
secondary
#2A7823
accent
#F43443
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340738

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

Preview Lab → · Contrast checker → · Palette generator →

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