#342C4E#342C4E

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

Color values

HEX#342C4E
RGBrgb(52, 44, 78)
HSLhsl(254, 28%, 24%)
HSVhsv(254, 44%, 31%)
CMYKcmyk(33.3%, 43.6%, 0%, 69.4%)
CIE-LABlab(20.37, 12.58, -19.67)
CIE-LCHlch(20.37, 23.35, 302.59°)
OKLaboklab(31.85% 0.0239 -0.055)
OKLCHoklch(31.85% 0.06 293.5)
XYZxyz(3.6917, 3.0814, 7.6065)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C4E #464E2C
analogous
#2C354E #342C4E #452C4E
triadic
#342C4E #4E342C #2C4E34
tetradic
#342C4E #4E2C35 #464E2C #2C4E45
square
#342C4E #4E2C35 #464E2C #2C4E45
split-complementary
#342C4E #4E452C #354E2C
monochromatic
#0D0B14 #1A1627 #342C4E #4E4275 #68589C

Accessibility & contrast

On white

12.99
#342C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C4E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C4E#FFFFFF#000000##FFFFFF
##342C4E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22314F
Deuteranopia (green-blind)
#23314D
Tritanopia (blue-blind)
#2E3239
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342c4e;
/* rgb */ color: rgb(52, 44, 78);
/* oklch */ color: oklch(31.8% 0.060 293.5);
Tailwind
colors: {
  custom: {
    50: '#6c657f',
    500: '#342c4e',
    950: '#000000',
  },
}
SCSS
$custom: #342c4e;
$custom-light: #6c657f;
$custom-dark: #000000;
JSON
{
  "hex": "#342c4e",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 78
  },
  "hsl": {
    "h": 254.118,
    "s": 27.869,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31848,
    "c": 0.05998,
    "h": 293.5
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#342C4E
secondary
#768056
accent
#C464AD
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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