#342086#342086

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

Color values

HEX#342086
RGBrgb(52, 32, 134)
HSLhsl(252, 61%, 33%)
HSVhsv(252, 76%, 53%)
CMYKcmyk(61.2%, 76.1%, 0%, 47.5%)
CIE-LABlab(21.89, 38.34, -53.61)
CIE-LCHlch(21.89, 65.91, 305.58°)
OKLaboklab(34.35% 0.0361 -0.1545)
OKLCHoklch(34.35% 0.159 283.2)
XYZxyz(6.2344, 3.4839, 22.8936)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342086 #728620
analogous
#203F86 #342086 #672086
triadic
#342086 #863420 #208634
tetradic
#342086 #86203F #728620 #208667
square
#342086 #86203F #728620 #208667
split-complementary
#342086 #866720 #3F8620
monochromatic
#0E0823 #211455 #342086 #472CB7 #674CD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342086#FFFFFF#000000##FFFFFF
##3420861.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)
#003889
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342086;
/* rgb */ color: rgb(52, 32, 134);
/* oklch */ color: oklch(34.4% 0.159 283.2);
Tailwind
colors: {
  custom: {
    50: '#765eaa',
    500: '#342086',
    950: '#000000',
  },
}
SCSS
$custom: #342086;
$custom-light: #765eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#342086",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 251.765,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34351,
    "c": 0.15866,
    "h": 283.2
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#342086
secondary
#A2B74B
accent
#E543C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342086

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

Preview Lab → · Contrast checker → · Palette generator →

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