#342A40#342A40

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

Color values

HEX#342A40
RGBrgb(52, 42, 64)
HSLhsl(267, 21%, 21%)
HSVhsv(267, 34%, 25%)
CMYKcmyk(18.8%, 34.4%, 0%, 74.9%)
CIE-LABlab(19.04, 9.90, -12.22)
CIE-LCHlch(19.04, 15.72, 309.02°)
OKLaboklab(30.59% 0.0234 -0.0336)
OKLCHoklch(30.59% 0.041 304.9)
XYZxyz(3.1694, 2.7562, 5.2145)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A40 #36402A
analogous
#2A2B40 #342A40 #3F2A40
triadic
#342A40 #40342A #2A4034
tetradic
#342A40 #402A2B #36402A #2A403F
square
#342A40 #402A2B #36402A #2A403F
split-complementary
#342A40 #403F2A #2B402A
monochromatic
#0F0C12 #16121B #342A40 #524265 #705A8A

Accessibility & contrast

On white

13.54
#342A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#342A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A40
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A40#FFFFFF#000000##FFFFFF
##342A401.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262E41
Deuteranopia (green-blind)
#282E3F
Tritanopia (blue-blind)
#322D32
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #342a40;
/* rgb */ color: rgb(52, 42, 64);
/* oklch */ color: oklch(30.6% 0.041 304.9);
Tailwind
colors: {
  custom: {
    50: '#6b6375',
    500: '#342a40',
    950: '#000000',
  },
}
SCSS
$custom: #342a40;
$custom-light: #6b6375;
$custom-dark: #000000;
JSON
{
  "hex": "#342a40",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 64
  },
  "hsl": {
    "h": 267.273,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30594,
    "c": 0.04093,
    "h": 304.9
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#342A40
secondary
#647155
accent
#BD6A98
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #342A40

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

Preview Lab → · Contrast checker → · Palette generator →

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