#342191#342191

#342191 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.171 H 281.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#342191
RGBrgb(52, 33, 145)
HSLhsl(250, 63%, 35%)
HSVhsv(250, 77%, 57%)
CMYKcmyk(64.1%, 77.2%, 0%, 43.1%)
CIE-LABlab(23.21, 41.27, -58.29)
CIE-LCHlch(23.21, 71.42, 305.30°)
OKLaboklab(35.62% 0.0326 -0.1682)
OKLCHoklch(35.62% 0.171 281)
XYZxyz(7.0693, 3.8616, 27.1554)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342191 #7E9121
analogous
#214691 #342191 #6C2191
triadic
#342191 #913421 #219134
tetradic
#342191 #912146 #7E9121 #21916C
square
#342191 #912146 #7E9121 #21916C
split-complementary
#342191 #916C21 #469121
monochromatic
#100A2D #22165F #342191 #462CC3 #6B54D8

Accessibility & contrast

On white

11.85
#342191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#342191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342191
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342191#FFFFFF#000000##FFFFFF
##3421911.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342191;
/* rgb */ color: rgb(52, 33, 145);
/* oklch */ color: oklch(35.6% 0.171 281.0);
Tailwind
colors: {
  custom: {
    50: '#785fb2',
    500: '#342191',
    950: '#000000',
  },
}
SCSS
$custom: #342191;
$custom-light: #785fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#342191",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 250.179,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35623,
    "c": 0.17131,
    "h": 281
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#342191
secondary
#AABC52
accent
#E642CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342191

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

Preview Lab → · Contrast checker → · Palette generator →

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