#342242#342242

#342242 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.0% C 0.061 H 308.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#342242
RGBrgb(52, 34, 66)
HSLhsl(274, 32%, 20%)
HSVhsv(274, 48%, 26%)
CMYKcmyk(21.2%, 48.5%, 0%, 74.1%)
CIE-LABlab(16.83, 15.99, -17.03)
CIE-LCHlch(16.83, 23.36, 313.20°)
OKLaboklab(28.95% 0.0383 -0.0473)
OKLCHoklch(28.95% 0.061 308.9)
XYZxyz(2.9714, 2.2675, 5.4343)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342242 #304222
analogous
#242242 #342242 #422240
triadic
#342242 #423422 #224234
tetradic
#342242 #422422 #304222 #224042
square
#342242 #422422 #304222 #224042
split-complementary
#342242 #404222 #224224
monochromatic
#100A14 #140D1A #342242 #54376A #744C93

Accessibility & contrast

On white

14.45
#342242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#342242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342242
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342242#FFFFFF#000000##FFFFFF
##3422421.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2943
Deuteranopia (green-blind)
#1F2A41
Tritanopia (blue-blind)
#32272E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #342242;
/* rgb */ color: rgb(52, 34, 66);
/* oklch */ color: oklch(29.0% 0.061 308.9);
Tailwind
colors: {
  custom: {
    50: '#6c5d76',
    500: '#342242',
    950: '#000000',
  },
}
SCSS
$custom: #342242;
$custom-light: #6c5d76;
$custom-dark: #000000;
JSON
{
  "hex": "#342242",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 273.75,
    "s": 32,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28953,
    "c": 0.06085,
    "h": 308.9
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#342242
secondary
#5D754A
accent
#C8608D
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #342242

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

Preview Lab → · Contrast checker → · Palette generator →

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