#342D54#342D54

#342D54 is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.4% C 0.068 H 290.3°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#342D54
RGBrgb(52, 45, 84)
HSLhsl(251, 30%, 25%)
HSVhsv(251, 46%, 33%)
CMYKcmyk(38.1%, 46.4%, 0%, 67.1%)
CIE-LABlab(21.01, 13.74, -22.68)
CIE-LCHlch(21.01, 26.52, 301.22°)
OKLaboklab(32.45% 0.0236 -0.0637)
OKLCHoklch(32.45% 0.068 290.3)
XYZxyz(3.9544, 3.2468, 8.8041)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D54 #4D542D
analogous
#2D3954 #342D54 #472D54
triadic
#342D54 #54342D #2D5434
tetradic
#342D54 #542D39 #4D542D #2D5447
square
#342D54 #542D39 #4D542D #2D5447
split-complementary
#342D54 #54472D #39542D
monochromatic
#0C0B14 #1B182C #342D54 #4D427C #6558A4

Accessibility & contrast

On white

12.73
#342D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342D54
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D54#FFFFFF#000000##FFFFFF
##342D541.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203355
Deuteranopia (green-blind)
#213253
Tritanopia (blue-blind)
#2C343C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342d54;
/* rgb */ color: rgb(52, 45, 84);
/* oklch */ color: oklch(32.4% 0.068 290.3);
Tailwind
colors: {
  custom: {
    50: '#6d6684',
    500: '#342d54',
    950: '#000000',
  },
}
SCSS
$custom: #342d54;
$custom-light: #6d6684;
$custom-dark: #000000;
JSON
{
  "hex": "#342d54",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 84
  },
  "hsl": {
    "h": 250.769,
    "s": 30.233,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32447,
    "c": 0.06799,
    "h": 290.3
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#342D54
secondary
#7D8657
accent
#C661B4
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07050B
muted
#7A7A7C

Preview Lab

Preview with #342D54

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

Preview Lab → · Contrast checker → · Palette generator →

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