#342E4E#342E4E

#342E4E is a dark, muted violet. Relative luminance 0.032; OKLCH L 32.3% C 0.056 H 291.5°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#342E4E
RGBrgb(52, 46, 78)
HSLhsl(251, 26%, 24%)
HSVhsv(251, 41%, 31%)
CMYKcmyk(33.3%, 41%, 0%, 69.4%)
CIE-LABlab(20.96, 11.19, -18.74)
CIE-LCHlch(20.96, 21.83, 300.83°)
OKLaboklab(32.3% 0.0206 -0.0523)
OKLCHoklch(32.3% 0.056 291.5)
XYZxyz(3.7680, 3.2340, 7.6320)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E4E #484E2E
analogous
#2E384E #342E4E #442E4E
triadic
#342E4E #4E342E #2E4E34
tetradic
#342E4E #4E2E38 #484E2E #2E4E44
square
#342E4E #4E2E38 #484E2E #2E4E44
split-complementary
#342E4E #4E442E #384E2E
monochromatic
#0D0B13 #1A1728 #342E4E #4E4574 #675B9B

Accessibility & contrast

On white

12.75
#342E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#342E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E4E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E4E#FFFFFF#000000##FFFFFF
##342E4E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25334F
Deuteranopia (green-blind)
#25324D
Tritanopia (blue-blind)
#2E343A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342e4e;
/* rgb */ color: rgb(52, 46, 78);
/* oklch */ color: oklch(32.3% 0.056 291.5);
Tailwind
colors: {
  custom: {
    50: '#6c667f',
    500: '#342e4e',
    950: '#000000',
  },
}
SCSS
$custom: #342e4e;
$custom-light: #6c667f;
$custom-dark: #000000;
JSON
{
  "hex": "#342e4e",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 78
  },
  "hsl": {
    "h": 251.25,
    "s": 25.806,
    "l": 24.314
  },
  "oklch": {
    "l": 0.32298,
    "c": 0.05623,
    "h": 291.5
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#342E4E
secondary
#787F58
accent
#C266B1
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07060A
muted
#7A7A7C

Preview Lab

Preview with #342E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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