#342181#342181

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

Color values

HEX#342181
RGBrgb(52, 33, 129)
HSLhsl(252, 59%, 32%)
HSVhsv(252, 74%, 51%)
CMYKcmyk(59.7%, 74.4%, 0%, 49.4%)
CIE-LABlab(21.59, 36.19, -50.95)
CIE-LCHlch(21.59, 62.49, 305.39°)
OKLaboklab(33.99% 0.0365 -0.1467)
OKLCHoklch(33.99% 0.151 284)
XYZxyz(5.9213, 3.4024, 21.1093)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342181 #6E8121
analogous
#213E81 #342181 #642181
triadic
#342181 #813421 #218134
tetradic
#342181 #81213E #6E8121 #218164
square
#342181 #81213E #6E8121 #218164
split-complementary
#342181 #816421 #3E8121
monochromatic
#0D0820 #201550 #342181 #482DB2 #664BD1

Accessibility & contrast

On white

12.50
#342181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342181
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342181#FFFFFF#000000##FFFFFF
##3421811.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#093B4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342181;
/* rgb */ color: rgb(52, 33, 129);
/* oklch */ color: oklch(34.0% 0.151 284.0);
Tailwind
colors: {
  custom: {
    50: '#755ea7',
    500: '#342181',
    950: '#000000',
  },
}
SCSS
$custom: #342181;
$custom-light: #755ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#342181",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 251.875,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33989,
    "c": 0.1512,
    "h": 284
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#342181
secondary
#9FB44A
accent
#E245C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #342181

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

Preview Lab → · Contrast checker → · Palette generator →

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