#342B3F#342B3F

#342B3F is a dark, muted violet. Relative luminance 0.028; OKLCH L 30.8% C 0.037 H 304.9°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#342B3F
RGBrgb(52, 43, 63)
HSLhsl(267, 19%, 21%)
HSVhsv(267, 32%, 25%)
CMYKcmyk(17.5%, 31.7%, 0%, 75.3%)
CIE-LABlab(19.29, 8.93, -11.14)
CIE-LCHlch(19.29, 14.28, 308.73°)
OKLaboklab(30.77% 0.0213 -0.0305)
OKLCHoklch(30.77% 0.037 304.9)
XYZxyz(3.1771, 2.8167, 5.0780)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B3F #363F2B
analogous
#2B2C3F #342B3F #3E2B3F
triadic
#342B3F #3F342B #2B3F34
tetradic
#342B3F #3F2B2C #363F2B #2B3F3E
square
#342B3F #3F2B2C #363F2B #2B3F3E
split-complementary
#342B3F #3F3E2B #2C3F2B
monochromatic
#0F0C12 #16121B #342B3F #524463 #705D88

Accessibility & contrast

On white

13.43
#342B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#342B3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B3F
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B3F#FFFFFF#000000##FFFFFF
##342B3F1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272E40
Deuteranopia (green-blind)
#292F3E
Tritanopia (blue-blind)
#322E32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342b3f;
/* rgb */ color: rgb(52, 43, 63);
/* oklch */ color: oklch(30.8% 0.037 304.9);
Tailwind
colors: {
  custom: {
    50: '#6b6474',
    500: '#342b3f',
    950: '#000000',
  },
}
SCSS
$custom: #342b3f;
$custom-light: #6b6474;
$custom-dark: #000000;
JSON
{
  "hex": "#342b3f",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 63
  },
  "hsl": {
    "h": 267,
    "s": 18.868,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30774,
    "c": 0.03719,
    "h": 304.9
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#342B3F
secondary
#647056
accent
#BC6C98
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #342B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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