#342082#342082

#342082 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.154 H 284.0°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#342082
RGBrgb(52, 32, 130)
HSLhsl(252, 60%, 32%)
HSVhsv(252, 75%, 51%)
CMYKcmyk(60%, 75.4%, 0%, 49%)
CIE-LABlab(21.48, 37.08, -51.75)
CIE-LCHlch(21.48, 63.66, 305.62°)
OKLaboklab(33.95% 0.0371 -0.1491)
OKLCHoklch(33.95% 0.154 284)
XYZxyz(5.9607, 3.3744, 21.4520)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342082 #6E8220
analogous
#203D82 #342082 #652082
triadic
#342082 #823420 #208234
tetradic
#342082 #82203D #6E8220 #208265
square
#342082 #82203D #6E8220 #208265
split-complementary
#342082 #826520 #3D8220
monochromatic
#0D0820 #201451 #342082 #482CB3 #664AD2

Accessibility & contrast

On white

12.54
#342082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#342082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342082
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342082#FFFFFF#000000##FFFFFF
##3420821.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#073B4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342082;
/* rgb */ color: rgb(52, 32, 130);
/* oklch */ color: oklch(33.9% 0.154 284.0);
Tailwind
colors: {
  custom: {
    50: '#755ea7',
    500: '#342082',
    950: '#000000',
  },
}
SCSS
$custom: #342082;
$custom-light: #755ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#342082",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 252.245,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33945,
    "c": 0.15361,
    "h": 284
  },
  "luminance": 0.03375
}

Semantic roles & 50–950 ramp

primary
#342082
secondary
#9FB549
accent
#E444C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342082

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

Preview Lab → · Contrast checker → · Palette generator →

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