#342182#342182

#342182 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.152 H 283.8°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#342182
RGBrgb(52, 33, 130)
HSLhsl(252, 60%, 32%)
HSVhsv(252, 75%, 51%)
CMYKcmyk(60%, 74.6%, 0%, 49%)
CIE-LABlab(21.69, 36.51, -51.42)
CIE-LCHlch(21.69, 63.06, 305.38°)
OKLaboklab(34.09% 0.0363 -0.1481)
OKLCHoklch(34.09% 0.152 283.8)
XYZxyz(5.9881, 3.4291, 21.4611)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342182 #6F8221
analogous
#213E82 #342182 #652182
triadic
#342182 #823421 #218234
tetradic
#342182 #82213E #6F8221 #218265
square
#342182 #82213E #6F8221 #218265
split-complementary
#342182 #826521 #3E8221
monochromatic
#0D0820 #201551 #342182 #482DB3 #664CD2

Accessibility & contrast

On white

12.46
#342182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#342182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342182
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342182#FFFFFF#000000##FFFFFF
##3421821.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342182;
/* rgb */ color: rgb(52, 33, 130);
/* oklch */ color: oklch(34.1% 0.152 283.8);
Tailwind
colors: {
  custom: {
    50: '#755ea7',
    500: '#342182',
    950: '#000000',
  },
}
SCSS
$custom: #342182;
$custom-light: #755ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#342182",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 251.753,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34088,
    "c": 0.15248,
    "h": 283.8
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#342182
secondary
#A0B44A
accent
#E345C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342182

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

Preview Lab → · Contrast checker → · Palette generator →

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