#342D52#342D52

#342D52 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.3% C 0.065 H 291.0°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#342D52
RGBrgb(52, 45, 82)
HSLhsl(251, 29%, 25%)
HSVhsv(251, 45%, 32%)
CMYKcmyk(36.6%, 45.1%, 0%, 67.8%)
CIE-LABlab(20.89, 13.12, -21.53)
CIE-LCHlch(20.89, 25.21, 301.35°)
OKLaboklab(32.32% 0.0232 -0.0604)
OKLCHoklch(32.32% 0.065 291)
XYZxyz(3.8772, 3.2159, 8.3975)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D52 #4B522D
analogous
#2D3952 #342D52 #462D52
triadic
#342D52 #52342D #2D5234
tetradic
#342D52 #522D39 #4B522D #2D5246
square
#342D52 #522D39 #4B522D #2D5246
split-complementary
#342D52 #52462D #39522D
monochromatic
#0D0B14 #1B172A #342D52 #4D437A #6658A1

Accessibility & contrast

On white

12.78
#342D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342D52
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D52#FFFFFF#000000##FFFFFF
##342D521.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213353
Deuteranopia (green-blind)
#223151
Tritanopia (blue-blind)
#2D343B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342d52;
/* rgb */ color: rgb(52, 45, 82);
/* oklch */ color: oklch(32.3% 0.065 291.0);
Tailwind
colors: {
  custom: {
    50: '#6d6683',
    500: '#342d52',
    950: '#000000',
  },
}
SCSS
$custom: #342d52;
$custom-light: #6d6683;
$custom-dark: #000000;
JSON
{
  "hex": "#342d52",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 82
  },
  "hsl": {
    "h": 251.351,
    "s": 29.134,
    "l": 24.902
  },
  "oklch": {
    "l": 0.32319,
    "c": 0.06471,
    "h": 291
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#342D52
secondary
#7B8457
accent
#C562B3
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07050A
muted
#7A7A7C

Preview Lab

Preview with #342D52

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

Preview Lab → · Contrast checker → · Palette generator →

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