#340338#340338

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

Color values

HEX#340338
RGBrgb(52, 3, 56)
HSLhsl(295, 90%, 12%)
HSVhsv(295, 95%, 22%)
CMYKcmyk(7.1%, 94.6%, 0%, 78%)
CIE-LABlab(9.65, 31.13, -21.34)
CIE-LCHlch(9.65, 37.74, 325.57°)
OKLaboklab(23.49% 0.0843 -0.0596)
OKLCHoklch(23.49% 0.103 324.7)
XYZxyz(2.1625, 1.0809, 3.8353)
Luminance0.0108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340338 #073803
analogous
#1A0338 #340338 #380322
triadic
#340338 #383403 #033834
tetradic
#340338 #381A03 #073803 #032238
square
#340338 #381A03 #073803 #032238
split-complementary
#340338 #223803 #03381A
monochromatic
#1B021D #1B021D #340338 #6A0672 #A009AC

Accessibility & contrast

On white

17.27
#340338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340338
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340338#FFFFFF#000000##FFFFFF
##3403381.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#0E1D37
Tritanopia (blue-blind)
#350D1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340338;
/* rgb */ color: rgb(52, 3, 56);
/* oklch */ color: oklch(23.5% 0.103 324.7);
Tailwind
colors: {
  custom: {
    50: '#6e4a6f',
    500: '#340338',
    950: '#000000',
  },
}
SCSS
$custom: #340338;
$custom-light: #6e4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340338",
  "rgb": {
    "r": 52,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 295.472,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23495,
    "c": 0.10325,
    "h": 324.7
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#340338
secondary
#237B1C
accent
#FF2939
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340338

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

Preview Lab → · Contrast checker → · Palette generator →

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