#342D4E#342D4E

#342D4E is a dark, muted violet. Relative luminance 0.032; OKLCH L 32.1% C 0.058 H 292.6°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#342D4E
RGBrgb(52, 45, 78)
HSLhsl(253, 27%, 24%)
HSVhsv(253, 42%, 31%)
CMYKcmyk(33.3%, 42.3%, 0%, 69.4%)
CIE-LABlab(20.66, 11.88, -19.21)
CIE-LCHlch(20.66, 22.58, 301.74°)
OKLaboklab(32.07% 0.0223 -0.0537)
OKLCHoklch(32.07% 0.058 292.6)
XYZxyz(3.7294, 3.1568, 7.6191)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D4E #474E2D
analogous
#2D374E #342D4E #452D4E
triadic
#342D4E #4E342D #2D4E34
tetradic
#342D4E #4E2D37 #474E2D #2D4E45
square
#342D4E #4E2D37 #474E2D #2D4E45
split-complementary
#342D4E #4E452D #374E2D
monochromatic
#0D0B13 #1A1727 #342D4E #4E4375 #685A9C

Accessibility & contrast

On white

12.87
#342D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#342D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D4E
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D4E#FFFFFF#000000##FFFFFF
##342D4E1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24324F
Deuteranopia (green-blind)
#24314D
Tritanopia (blue-blind)
#2E3339
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342d4e;
/* rgb */ color: rgb(52, 45, 78);
/* oklch */ color: oklch(32.1% 0.058 292.6);
Tailwind
colors: {
  custom: {
    50: '#6c667f',
    500: '#342d4e',
    950: '#000000',
  },
}
SCSS
$custom: #342d4e;
$custom-light: #6c667f;
$custom-dark: #000000;
JSON
{
  "hex": "#342d4e",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 78
  },
  "hsl": {
    "h": 252.727,
    "s": 26.829,
    "l": 24.118
  },
  "oklch": {
    "l": 0.32072,
    "c": 0.05811,
    "h": 292.6
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#342D4E
secondary
#778057
accent
#C365AF
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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