#342180#342180

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

Color values

HEX#342180
RGBrgb(52, 33, 128)
HSLhsl(252, 59%, 32%)
HSVhsv(252, 74%, 50%)
CMYKcmyk(59.4%, 74.2%, 0%, 49.8%)
CIE-LABlab(21.49, 35.87, -50.47)
CIE-LCHlch(21.49, 61.92, 305.40°)
OKLaboklab(33.89% 0.0368 -0.1453)
OKLCHoklch(33.89% 0.15 284.2)
XYZxyz(5.8551, 3.3759, 20.7610)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342180 #6D8021
analogous
#213E80 #342180 #642180
triadic
#342180 #803421 #218034
tetradic
#342180 #80213E #6D8021 #218064
square
#342180 #80213E #6D8021 #218064
split-complementary
#342180 #806421 #3E8021
monochromatic
#0C081F #20144F #342180 #482EB1 #664BD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342180#FFFFFF#000000##FFFFFF
##3421801.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)
#003683
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#0B3B4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342180;
/* rgb */ color: rgb(52, 33, 128);
/* oklch */ color: oklch(33.9% 0.150 284.2);
Tailwind
colors: {
  custom: {
    50: '#755ea6',
    500: '#342180',
    950: '#000000',
  },
}
SCSS
$custom: #342180;
$custom-light: #755ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#342180",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 252,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33889,
    "c": 0.14992,
    "h": 284.2
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#342180
secondary
#9EB34A
accent
#E246C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #342180

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

Preview Lab → · Contrast checker → · Palette generator →

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