#342B4D#342B4D

#342B4D is a dark, moderate violet. Relative luminance 0.030; OKLCH L 31.6% C 0.060 H 294.9°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#342B4D
RGBrgb(52, 43, 77)
HSLhsl(256, 28%, 24%)
HSVhsv(256, 44%, 30%)
CMYKcmyk(32.5%, 44.2%, 0%, 69.8%)
CIE-LABlab(20.02, 12.96, -19.54)
CIE-LCHlch(20.02, 23.45, 303.56°)
OKLaboklab(31.56% 0.0254 -0.0546)
OKLCHoklch(31.56% 0.06 294.9)
XYZxyz(3.6193, 2.9936, 7.4069)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B4D #444D2B
analogous
#2B334D #342B4D #452B4D
triadic
#342B4D #4D342B #2B4D34
tetradic
#342B4D #4D2B33 #444D2B #2B4D45
square
#342B4D #4D2B33 #444D2B #2B4D45
split-complementary
#342B4D #4D452B #334D2B
monochromatic
#0D0B14 #191526 #342B4D #4F4174 #69579C

Accessibility & contrast

On white

13.13
#342B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#342B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B4D
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B4D#FFFFFF#000000##FFFFFF
##342B4D1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314E
Deuteranopia (green-blind)
#23304C
Tritanopia (blue-blind)
#2F3138
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342b4d;
/* rgb */ color: rgb(52, 43, 77);
/* oklch */ color: oklch(31.6% 0.060 294.9);
Tailwind
colors: {
  custom: {
    50: '#6c647f',
    500: '#342b4d',
    950: '#000000',
  },
}
SCSS
$custom: #342b4d;
$custom-light: #6c647f;
$custom-dark: #000000;
JSON
{
  "hex": "#342b4d",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 77
  },
  "hsl": {
    "h": 255.882,
    "s": 28.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31564,
    "c": 0.06023,
    "h": 294.9
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#342B4D
secondary
#747F55
accent
#C563AB
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#07050A
muted
#7A797C

Preview Lab

Preview with #342B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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