#340431#340431

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

Color values

HEX#340431
RGBrgb(52, 4, 49)
HSLhsl(304, 86%, 11%)
HSVhsv(304, 92%, 20%)
CMYKcmyk(0%, 92.3%, 5.8%, 79.6%)
CIE-LABlab(9.31, 29.26, -16.76)
CIE-LCHlch(9.31, 33.72, 330.19°)
OKLaboklab(23.09% 0.0834 -0.0463)
OKLCHoklch(23.09% 0.095 331)
XYZxyz(2.0140, 1.0388, 2.9996)
Luminance0.0104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340431 #043407
analogous
#1F0434 #340431 #340419
triadic
#340431 #313404 #043134
tetradic
#340431 #341F04 #043407 #041934
square
#340431 #341F04 #043407 #041934
split-complementary
#340431 #193404 #04341F
monochromatic
#1C021B #1C021B #340431 #6D0867 #A60D9C

Accessibility & contrast

On white

17.39
#340431 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340431
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340431#FFFFFF#000000##FFFFFF
##3404311.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011632
Deuteranopia (green-blind)
#131C30
Tritanopia (blue-blind)
#360A1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340431;
/* rgb */ color: rgb(52, 4, 49);
/* oklch */ color: oklch(23.1% 0.095 331.0);
Tailwind
colors: {
  custom: {
    50: '#6e4a69',
    500: '#340431',
    950: '#000000',
  },
}
SCSS
$custom: #340431;
$custom-light: #6e4a69;
$custom-dark: #000000;
JSON
{
  "hex": "#340431",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 49
  },
  "hsl": {
    "h": 303.75,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.23092,
    "c": 0.09541,
    "h": 331
  },
  "luminance": 0.01039
}

Semantic roles & 50–950 ramp

primary
#340431
secondary
#1E7623
accent
#FC392C
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340431

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

Preview Lab → · Contrast checker → · Palette generator →

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