#342184#342184

#342184 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.155 H 283.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#342184
RGBrgb(52, 33, 132)
HSLhsl(252, 60%, 32%)
HSVhsv(252, 75%, 52%)
CMYKcmyk(60.6%, 75%, 0%, 48.2%)
CIE-LABlab(21.88, 37.15, -52.35)
CIE-LCHlch(21.88, 64.19, 305.36°)
OKLaboklab(34.29% 0.0359 -0.1508)
OKLCHoklch(34.29% 0.155 283.4)
XYZxyz(6.1236, 3.4833, 22.1750)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342184 #718421
analogous
#214084 #342184 #652184
triadic
#342184 #843421 #218434
tetradic
#342184 #842140 #718421 #218465
square
#342184 #842140 #718421 #218465
split-complementary
#342184 #846521 #408421
monochromatic
#0D0922 #211553 #342184 #472DB5 #674DD2

Accessibility & contrast

On white

12.38
#342184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#342184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342184
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342184#FFFFFF#000000##FFFFFF
##3421841.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#023C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342184;
/* rgb */ color: rgb(52, 33, 132);
/* oklch */ color: oklch(34.3% 0.155 283.4);
Tailwind
colors: {
  custom: {
    50: '#765ea9',
    500: '#342184',
    950: '#000000',
  },
}
SCSS
$custom: #342184;
$custom-light: #765ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#342184",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 132
  },
  "hsl": {
    "h": 251.515,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34288,
    "c": 0.15503,
    "h": 283.4
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#342184
secondary
#A1B64B
accent
#E345C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342184

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

Preview Lab → · Contrast checker → · Palette generator →

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