#342A46#342A46

#342A46 is a dark, muted violet. Relative luminance 0.028; OKLCH L 30.9% C 0.051 H 299.9°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#342A46
RGBrgb(52, 42, 70)
HSLhsl(261, 25%, 22%)
HSVhsv(261, 40%, 27%)
CMYKcmyk(25.7%, 40%, 0%, 72.5%)
CIE-LABlab(19.34, 11.59, -15.85)
CIE-LCHlch(19.34, 19.64, 306.16°)
OKLaboklab(30.93% 0.0253 -0.044)
OKLCHoklch(30.93% 0.051 299.9)
XYZxyz(3.3494, 2.8282, 6.1626)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A46 #3C462A
analogous
#2A2E46 #342A46 #422A46
triadic
#342A46 #46342A #2A4634
tetradic
#342A46 #462A2E #3C462A #2A4642
square
#342A46 #462A2E #3C462A #2A4642
split-complementary
#342A46 #46422A #2E462A
monochromatic
#0E0B13 #181320 #342A46 #50416C #6D5893

Accessibility & contrast

On white

13.41
#342A46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#342A46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A46
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A46#FFFFFF#000000##FFFFFF
##342A461.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232F47
Deuteranopia (green-blind)
#252F45
Tritanopia (blue-blind)
#312F34
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342a46;
/* rgb */ color: rgb(52, 42, 70);
/* oklch */ color: oklch(30.9% 0.051 299.9);
Tailwind
colors: {
  custom: {
    50: '#6c6379',
    500: '#342a46',
    950: '#000000',
  },
}
SCSS
$custom: #342a46;
$custom-light: #6c6379;
$custom-dark: #000000;
JSON
{
  "hex": "#342a46",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 70
  },
  "hsl": {
    "h": 261.429,
    "s": 25,
    "l": 21.961
  },
  "oklch": {
    "l": 0.30925,
    "c": 0.05071,
    "h": 299.9
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#342A46
secondary
#6B7854
accent
#C166A1
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#070509
muted
#7A797B

Preview Lab

Preview with #342A46

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

Preview Lab → · Contrast checker → · Palette generator →

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