#342096#342096

#342096 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.178 H 280.3°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#342096
RGBrgb(52, 32, 150)
HSLhsl(250, 65%, 36%)
HSVhsv(250, 79%, 59%)
CMYKcmyk(65.3%, 78.7%, 0%, 41.2%)
CIE-LABlab(23.55, 43.36, -60.81)
CIE-LCHlch(23.55, 74.68, 305.49°)
OKLaboklab(36.02% 0.0319 -0.1755)
OKLCHoklch(36.02% 0.178 280.3)
XYZxyz(7.4360, 3.9645, 29.2216)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342096 #829620
analogous
#204796 #342096 #6F2096
triadic
#342096 #963420 #209634
tetradic
#342096 #962047 #829620 #20966F
square
#342096 #962047 #829620 #20966F
split-complementary
#342096 #966F20 #479620
monochromatic
#110A31 #231564 #342096 #452BC8 #6C56DB

Accessibility & contrast

On white

11.71
#342096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#342096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342096
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342096#FFFFFF#000000##FFFFFF
##3420961.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342096;
/* rgb */ color: rgb(52, 32, 150);
/* oklch */ color: oklch(36.0% 0.178 280.3);
Tailwind
colors: {
  custom: {
    50: '#795fb6',
    500: '#342096',
    950: '#000000',
  },
}
SCSS
$custom: #342096;
$custom-light: #795fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#342096",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 250.169,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36023,
    "c": 0.1784,
    "h": 280.3
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#342096
secondary
#ACBE53
accent
#E840CB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342096

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

Preview Lab → · Contrast checker → · Palette generator →

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