#342D49#342D49

#342D49 is a dark, muted violet. Relative luminance 0.031; OKLCH L 31.8% C 0.050 H 294.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#342D49
RGBrgb(52, 45, 73)
HSLhsl(255, 24%, 23%)
HSVhsv(255, 38%, 29%)
CMYKcmyk(28.8%, 38.4%, 0%, 71.4%)
CIE-LABlab(20.39, 10.38, -16.26)
CIE-LCHlch(20.39, 19.29, 302.56°)
OKLaboklab(31.78% 0.021 -0.0451)
OKLCHoklch(31.78% 0.05 294.9)
XYZxyz(3.5569, 3.0878, 6.7107)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D49 #42492D
analogous
#2D3449 #342D49 #422D49
triadic
#342D49 #49342D #2D4934
tetradic
#342D49 #492D34 #42492D #2D4942
square
#342D49 #492D34 #42492D #2D4942
split-complementary
#342D49 #49422D #34492D
monochromatic
#0D0C13 #191623 #342D49 #4F446F #6A5C95

Accessibility & contrast

On white

12.98
#342D49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#342D49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D49
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D49#FFFFFF#000000##FFFFFF
##342D491.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26314A
Deuteranopia (green-blind)
#273148
Tritanopia (blue-blind)
#303237
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342d49;
/* rgb */ color: rgb(52, 45, 73);
/* oklch */ color: oklch(31.8% 0.050 294.9);
Tailwind
colors: {
  custom: {
    50: '#6c657c',
    500: '#342d49',
    950: '#000000',
  },
}
SCSS
$custom: #342d49;
$custom-light: #6c657c;
$custom-dark: #000000;
JSON
{
  "hex": "#342d49",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 73
  },
  "hsl": {
    "h": 255,
    "s": 23.729,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31778,
    "c": 0.04976,
    "h": 294.9
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#342D49
secondary
#727A57
accent
#C068AA
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#070509
muted
#7A7A7B

Preview Lab

Preview with #342D49

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

Preview Lab → · Contrast checker → · Palette generator →

#342D49 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva