#342B59#342B59

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

Color values

HEX#342B59
RGBrgb(52, 43, 89)
HSLhsl(252, 35%, 26%)
HSVhsv(252, 52%, 35%)
CMYKcmyk(41.6%, 51.7%, 0%, 65.1%)
CIE-LABlab(20.75, 16.72, -26.42)
CIE-LCHlch(20.75, 31.26, 302.32°)
OKLaboklab(32.35% 0.0275 -0.0747)
OKLCHoklch(32.35% 0.08 290.2)
XYZxyz(4.0827, 3.1790, 9.8477)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B59 #50592B
analogous
#2B3959 #342B59 #4B2B59
triadic
#342B59 #59342B #2B5934
tetradic
#342B59 #592B39 #50592B #2B594B
square
#342B59 #592B39 #50592B #2B594B
split-complementary
#342B59 #594B2B #39592B
monochromatic
#0C0A15 #1C1730 #342B59 #4C3F82 #6453AC

Accessibility & contrast

On white

12.84
#342B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B59
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B59#FFFFFF#000000##FFFFFF
##342B591.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A335B
Deuteranopia (green-blind)
#1A3158
Tritanopia (blue-blind)
#2A343D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342b59;
/* rgb */ color: rgb(52, 43, 89);
/* oklch */ color: oklch(32.4% 0.080 290.2);
Tailwind
colors: {
  custom: {
    50: '#6e6488',
    500: '#342b59',
    950: '#000000',
  },
}
SCSS
$custom: #342b59;
$custom-light: #6e6488;
$custom-dark: #000000;
JSON
{
  "hex": "#342b59",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 89
  },
  "hsl": {
    "h": 251.739,
    "s": 34.848,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32352,
    "c": 0.07958,
    "h": 290.2
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#342B59
secondary
#818B55
accent
#CB5DB5
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07050B
muted
#7A7A7C

Preview Lab

Preview with #342B59

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

Preview Lab → · Contrast checker → · Palette generator →

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