#342B57#342B57

#342B57 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.2% C 0.076 H 290.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#342B57
RGBrgb(52, 43, 87)
HSLhsl(252, 34%, 25%)
HSVhsv(252, 51%, 34%)
CMYKcmyk(40.2%, 50.6%, 0%, 65.9%)
CIE-LABlab(20.62, 16.08, -25.29)
CIE-LCHlch(20.62, 29.97, 302.44°)
OKLaboklab(32.21% 0.0272 -0.0714)
OKLCHoklch(32.21% 0.076 290.9)
XYZxyz(3.9999, 3.1458, 9.4114)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B57 #4E572B
analogous
#2B3857 #342B57 #4A2B57
triadic
#342B57 #57342B #2B5734
tetradic
#342B57 #572B38 #4E572B #2B574A
square
#342B57 #572B38 #4E572B #2B574A
split-complementary
#342B57 #574A2B #38572B
monochromatic
#0C0A14 #1C172E #342B57 #4C3F80 #6553A9

Accessibility & contrast

On white

12.89
#342B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342B57
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B57#FFFFFF#000000##FFFFFF
##342B571.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3259
Deuteranopia (green-blind)
#1C3156
Tritanopia (blue-blind)
#2B343C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342b57;
/* rgb */ color: rgb(52, 43, 87);
/* oklch */ color: oklch(32.2% 0.076 290.9);
Tailwind
colors: {
  custom: {
    50: '#6d6486',
    500: '#342b57',
    950: '#000000',
  },
}
SCSS
$custom: #342b57;
$custom-light: #6d6486;
$custom-dark: #000000;
JSON
{
  "hex": "#342b57",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 87
  },
  "hsl": {
    "h": 252.273,
    "s": 33.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32214,
    "c": 0.0764,
    "h": 290.9
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#342B57
secondary
#7E8955
accent
#CA5EB4
background
#F6F6F8
surface
#ECEBEF
border
#C7C6CA
text
#07050B
muted
#7A7A7C

Preview Lab

Preview with #342B57

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

Preview Lab → · Contrast checker → · Palette generator →

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