#342186#342186

#342186 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.158 H 283.0°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#342186
RGBrgb(52, 33, 134)
HSLhsl(251, 60%, 33%)
HSVhsv(251, 75%, 53%)
CMYKcmyk(61.2%, 75.4%, 0%, 47.5%)
CIE-LABlab(22.08, 37.79, -53.28)
CIE-LCHlch(22.08, 65.32, 305.34°)
OKLaboklab(34.49% 0.0354 -0.1535)
OKLCHoklch(34.49% 0.158 283)
XYZxyz(6.2618, 3.5386, 22.9027)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342186 #738621
analogous
#214186 #342186 #662186
triadic
#342186 #863421 #218634
tetradic
#342186 #862141 #738621 #218666
square
#342186 #862141 #738621 #218666
split-complementary
#342186 #866621 #418621
monochromatic
#0E0924 #211555 #342186 #472DB7 #674ED3

Accessibility & contrast

On white

12.30
#342186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#342186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342186
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342186#FFFFFF#000000##FFFFFF
##3421861.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342186;
/* rgb */ color: rgb(52, 33, 134);
/* oklch */ color: oklch(34.5% 0.158 283.0);
Tailwind
colors: {
  custom: {
    50: '#765faa',
    500: '#342186',
    950: '#000000',
  },
}
SCSS
$custom: #342186;
$custom-light: #765faa;
$custom-dark: #000000;
JSON
{
  "hex": "#342186",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 251.287,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3449,
    "c": 0.15757,
    "h": 283
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#342186
secondary
#A3B74C
accent
#E444C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342186

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

Preview Lab → · Contrast checker → · Palette generator →

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