#342B56#342B56

#342B56 is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.1% C 0.075 H 291.2°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#342B56
RGBrgb(52, 43, 86)
HSLhsl(253, 33%, 25%)
HSVhsv(253, 50%, 34%)
CMYKcmyk(39.5%, 50%, 0%, 66.3%)
CIE-LABlab(20.56, 15.76, -24.73)
CIE-LCHlch(20.56, 29.32, 302.51°)
OKLaboklab(32.15% 0.0271 -0.0697)
OKLCHoklch(32.15% 0.075 291.2)
XYZxyz(3.9593, 3.1296, 9.1978)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B56 #4D562B
analogous
#2B3756 #342B56 #492B56
triadic
#342B56 #56342B #2B5634
tetradic
#342B56 #562B37 #4D562B #2B5649
square
#342B56 #562B37 #4D562B #2B5649
split-complementary
#342B56 #56492B #37562B
monochromatic
#0C0A14 #1B172D #342B56 #4D3F7F #6554A8

Accessibility & contrast

On white

12.92
#342B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#342B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B56
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B56#FFFFFF#000000##FFFFFF
##342B561.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3258
Deuteranopia (green-blind)
#1D3155
Tritanopia (blue-blind)
#2B333C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342b56;
/* rgb */ color: rgb(52, 43, 86);
/* oklch */ color: oklch(32.1% 0.075 291.2);
Tailwind
colors: {
  custom: {
    50: '#6d6486',
    500: '#342b56',
    950: '#000000',
  },
}
SCSS
$custom: #342b56;
$custom-light: #6d6486;
$custom-dark: #000000;
JSON
{
  "hex": "#342b56",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 86
  },
  "hsl": {
    "h": 252.558,
    "s": 33.333,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32146,
    "c": 0.07481,
    "h": 291.2
  },
  "luminance": 0.0313
}

Semantic roles & 50–950 ramp

primary
#342B56
secondary
#7D8855
accent
#C95EB3
background
#F6F6F8
surface
#ECEBEF
border
#C7C6CA
text
#07050B
muted
#7A7A7C

Preview Lab

Preview with #342B56

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

Preview Lab → · Contrast checker → · Palette generator →

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