#342E4C#342E4C

#342E4C is a dark, muted violet. Relative luminance 0.032; OKLCH L 32.2% C 0.053 H 292.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#342E4C
RGBrgb(52, 46, 76)
HSLhsl(252, 25%, 24%)
HSVhsv(252, 39%, 30%)
CMYKcmyk(31.6%, 39.5%, 0%, 70.2%)
CIE-LABlab(20.85, 10.58, -17.57)
CIE-LCHlch(20.85, 20.51, 301.06°)
OKLaboklab(32.18% 0.0201 -0.0489)
OKLCHoklch(32.18% 0.053 292.3)
XYZxyz(3.6974, 3.2058, 7.2601)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E4C #464C2E
analogous
#2E374C #342E4C #432E4C
triadic
#342E4C #4C342E #2E4C34
tetradic
#342E4C #4C2E37 #464C2E #2E4C43
square
#342E4C #4C2E37 #464C2E #2E4C43
split-complementary
#342E4C #4C432E #374C2E
monochromatic
#0D0C13 #1A1726 #342E4C #4E4572 #685C98

Accessibility & contrast

On white

12.80
#342E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#342E4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E4C
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E4C#FFFFFF#000000##FFFFFF
##342E4C1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26334D
Deuteranopia (green-blind)
#26324B
Tritanopia (blue-blind)
#2F3339
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342e4c;
/* rgb */ color: rgb(52, 46, 76);
/* oklch */ color: oklch(32.2% 0.053 292.3);
Tailwind
colors: {
  custom: {
    50: '#6c667e',
    500: '#342e4c',
    950: '#000000',
  },
}
SCSS
$custom: #342e4c;
$custom-light: #6c667e;
$custom-dark: #000000;
JSON
{
  "hex": "#342e4c",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 76
  },
  "hsl": {
    "h": 252,
    "s": 24.59,
    "l": 23.922
  },
  "oklch": {
    "l": 0.3218,
    "c": 0.05289,
    "h": 292.3
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#342E4C
secondary
#767D59
accent
#C167AF
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07060A
muted
#7A7A7C

Preview Lab

Preview with #342E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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