#342178#342178

#342178 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.140 H 286.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#342178
RGBrgb(52, 33, 120)
HSLhsl(253, 57%, 30%)
HSVhsv(253, 73%, 47%)
CMYKcmyk(56.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(20.73, 33.31, -46.64)
CIE-LCHlch(20.73, 57.31, 305.53°)
OKLaboklab(33.11% 0.0384 -0.1341)
OKLCHoklch(33.11% 0.14 286)
XYZxyz(5.3492, 3.1736, 18.0964)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342178 #657821
analogous
#213A78 #342178 #5F2178
triadic
#342178 #783421 #217834
tetradic
#342178 #78213A #657821 #21785F
square
#342178 #78213A #657821 #21785F
split-complementary
#342178 #785F21 #3A7821
monochromatic
#0A0718 #1F1448 #342178 #492EA8 #6447CC

Accessibility & contrast

On white

12.85
#342178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#342178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342178
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342178#FFFFFF#000000##FFFFFF
##3421781.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#17384A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342178;
/* rgb */ color: rgb(52, 33, 120);
/* oklch */ color: oklch(33.1% 0.140 286.0);
Tailwind
colors: {
  custom: {
    50: '#735ea0',
    500: '#342178',
    950: '#000000',
  },
}
SCSS
$custom: #342178;
$custom-light: #735ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#342178",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 253.103,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.3311,
    "c": 0.1395,
    "h": 286
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#342178
secondary
#96AB4A
accent
#E048BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #342178

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

Preview Lab → · Contrast checker → · Palette generator →

#342178 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva