#342A4A#342A4A

#342A4A is a dark, muted violet. Relative luminance 0.029; OKLCH L 31.2% C 0.057 H 297.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#342A4A
RGBrgb(52, 42, 74)
HSLhsl(259, 28%, 23%)
HSVhsv(259, 43%, 29%)
CMYKcmyk(29.7%, 43.2%, 0%, 71%)
CIE-LABlab(19.56, 12.76, -18.24)
CIE-LCHlch(19.56, 22.26, 304.98°)
OKLaboklab(31.16% 0.0263 -0.0508)
OKLCHoklch(31.16% 0.057 297.4)
XYZxyz(3.4799, 2.8804, 6.8499)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A4A #404A2A
analogous
#2A304A #342A4A #442A4A
triadic
#342A4A #4A342A #2A4A34
tetradic
#342A4A #4A2A30 #404A2A #2A4A44
square
#342A4A #4A2A30 #404A2A #2A4A44
split-complementary
#342A4A #4A442A #304A2A
monochromatic
#0E0B14 #191423 #342A4A #4F4071 #6B5698

Accessibility & contrast

On white

13.32
#342A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#342A4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A4A
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A4A#FFFFFF#000000##FFFFFF
##342A4A1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212F4B
Deuteranopia (green-blind)
#232F49
Tritanopia (blue-blind)
#302F36
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342a4a;
/* rgb */ color: rgb(52, 42, 74);
/* oklch */ color: oklch(31.2% 0.057 297.4);
Tailwind
colors: {
  custom: {
    50: '#6c637c',
    500: '#342a4a',
    950: '#000000',
  },
}
SCSS
$custom: #342a4a;
$custom-light: #6c637c;
$custom-dark: #000000;
JSON
{
  "hex": "#342a4a",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 74
  },
  "hsl": {
    "h": 258.75,
    "s": 27.586,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3116,
    "c": 0.05724,
    "h": 297.4
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#342A4A
secondary
#6F7C54
accent
#C464A6
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#070509
muted
#7A797B

Preview Lab

Preview with #342A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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