#342176#342176

#342176 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.137 H 286.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#342176
RGBrgb(52, 33, 118)
HSLhsl(253, 56%, 30%)
HSVhsv(253, 72%, 46%)
CMYKcmyk(55.9%, 72%, 0%, 53.7%)
CIE-LABlab(20.54, 32.67, -45.67)
CIE-LCHlch(20.54, 56.15, 305.58°)
OKLaboklab(32.92% 0.0388 -0.1312)
OKLCHoklch(32.92% 0.137 286.5)
XYZxyz(5.2291, 3.1255, 17.4638)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342176 #637621
analogous
#213976 #342176 #5F2176
triadic
#342176 #763421 #217634
tetradic
#342176 #762139 #637621 #21765F
square
#342176 #762139 #637621 #21765F
split-complementary
#342176 #765F21 #397621
monochromatic
#0B0718 #1F1446 #342176 #492EA6 #6446CB

Accessibility & contrast

On white

12.92
#342176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##342176#FFFFFF#000000##FFFFFF
##3421761.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)
#003479
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#193749
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342176;
/* rgb */ color: rgb(52, 33, 118);
/* oklch */ color: oklch(32.9% 0.137 286.5);
Tailwind
colors: {
  custom: {
    50: '#735e9e',
    500: '#342176',
    950: '#000000',
  },
}
SCSS
$custom: #342176;
$custom-light: #735e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#342176",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 253.412,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3292,
    "c": 0.13686,
    "h": 286.5
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#342176
secondary
#94A94A
accent
#E048BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #342176

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

Preview Lab → · Contrast checker → · Palette generator →

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