#340231#340231

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

Color values

HEX#340231
RGBrgb(52, 2, 49)
HSLhsl(304, 93%, 11%)
HSVhsv(304, 96%, 20%)
CMYKcmyk(0%, 96.2%, 5.8%, 79.6%)
CIE-LABlab(8.95, 30.30, -17.33)
CIE-LCHlch(8.95, 34.91, 330.23°)
OKLaboklab(22.84% 0.0864 -0.0479)
OKLCHoklch(22.84% 0.099 331)
XYZxyz(1.9923, 0.9954, 2.9923)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340231 #023405
analogous
#1E0234 #340231 #340218
triadic
#340231 #313402 #023134
tetradic
#340231 #341E02 #023405 #021834
square
#340231 #341E02 #023405 #021834
split-complementary
#340231 #183402 #02341E
monochromatic
#1D011C #1D011C #340231 #6F0469 #AA07A0

Accessibility & contrast

On white

17.51
#340231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#340231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340231
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340231#FFFFFF#000000##FFFFFF
##3402311.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#121C30
Tritanopia (blue-blind)
#370819
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #340231;
/* rgb */ color: rgb(52, 2, 49);
/* oklch */ color: oklch(22.8% 0.099 331.0);
Tailwind
colors: {
  custom: {
    50: '#6e4969',
    500: '#340231',
    950: '#000000',
  },
}
SCSS
$custom: #340231;
$custom-light: #6e4969;
$custom-dark: #000000;
JSON
{
  "hex": "#340231",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 303.6,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.22839,
    "c": 0.09883,
    "h": 331
  },
  "luminance": 0.00995
}

Semantic roles & 50–950 ramp

primary
#340231
secondary
#1A781F
accent
#FF3629
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340231

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

Preview Lab → · Contrast checker → · Palette generator →

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