#342C52#342C52

#342C52 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.1% C 0.067 H 291.9°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#342C52
RGBrgb(52, 44, 82)
HSLhsl(253, 30%, 25%)
HSVhsv(253, 46%, 32%)
CMYKcmyk(36.6%, 46.3%, 0%, 67.8%)
CIE-LABlab(20.60, 13.81, -21.99)
CIE-LCHlch(20.60, 25.97, 302.13°)
OKLaboklab(32.1% 0.0248 -0.0617)
OKLCHoklch(32.1% 0.067 291.9)
XYZxyz(3.8395, 3.1405, 8.3849)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C52 #4A522C
analogous
#2C3752 #342C52 #472C52
triadic
#342C52 #52342C #2C5234
tetradic
#342C52 #522C37 #4A522C #2C5247
square
#342C52 #522C37 #4A522C #2C5247
split-complementary
#342C52 #52472C #37522C
monochromatic
#0D0B14 #1B172A #342C52 #4D417A #6757A2

Accessibility & contrast

On white

12.90
#342C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C52
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C52#FFFFFF#000000##FFFFFF
##342C521.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203253
Deuteranopia (green-blind)
#213151
Tritanopia (blue-blind)
#2D333B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342c52;
/* rgb */ color: rgb(52, 44, 82);
/* oklch */ color: oklch(32.1% 0.067 291.9);
Tailwind
colors: {
  custom: {
    50: '#6d6583',
    500: '#342c52',
    950: '#000000',
  },
}
SCSS
$custom: #342c52;
$custom-light: #6d6583;
$custom-dark: #000000;
JSON
{
  "hex": "#342c52",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 82
  },
  "hsl": {
    "h": 252.632,
    "s": 30.159,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32099,
    "c": 0.06654,
    "h": 291.9
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#342C52
secondary
#7A8456
accent
#C661B1
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342C52

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

Preview Lab → · Contrast checker → · Palette generator →

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