#342084#342084

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

Color values

HEX#342084
RGBrgb(52, 32, 132)
HSLhsl(252, 61%, 32%)
HSVhsv(252, 76%, 52%)
CMYKcmyk(60.6%, 75.8%, 0%, 48.2%)
CIE-LABlab(21.68, 37.71, -52.68)
CIE-LCHlch(21.68, 64.79, 305.60°)
OKLaboklab(34.15% 0.0366 -0.1518)
OKLCHoklch(34.15% 0.156 283.6)
XYZxyz(6.0963, 3.4286, 22.1659)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342084 #708420
analogous
#203E84 #342084 #662084
triadic
#342084 #843420 #208434
tetradic
#342084 #84203E #708420 #208466
square
#342084 #84203E #708420 #208466
split-complementary
#342084 #846620 #3E8420
monochromatic
#0D0821 #211453 #342084 #472CB5 #664BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342084#FFFFFF#000000##FFFFFF
##3420841.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)
#003787
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#023C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342084;
/* rgb */ color: rgb(52, 32, 132);
/* oklch */ color: oklch(34.1% 0.156 283.6);
Tailwind
colors: {
  custom: {
    50: '#765ea9',
    500: '#342084',
    950: '#000000',
  },
}
SCSS
$custom: #342084;
$custom-light: #765ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#342084",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 132
  },
  "hsl": {
    "h": 252,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34147,
    "c": 0.15614,
    "h": 283.6
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#342084
secondary
#A0B64A
accent
#E444C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342084

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

Preview Lab → · Contrast checker → · Palette generator →

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