#342091#342091

#342091 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.172 H 281.1°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#342091
RGBrgb(52, 32, 145)
HSLhsl(251, 64%, 35%)
HSVhsv(251, 78%, 57%)
CMYKcmyk(64.1%, 77.9%, 0%, 43.1%)
CIE-LABlab(23.02, 41.80, -58.60)
CIE-LCHlch(23.02, 71.98, 305.50°)
OKLaboklab(35.49% 0.0333 -0.1691)
OKLCHoklch(35.49% 0.172 281.1)
XYZxyz(7.0419, 3.8069, 27.1463)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342091 #7D9120
analogous
#204591 #342091 #6C2091
triadic
#342091 #913420 #209134
tetradic
#342091 #912045 #7D9120 #20916C
square
#342091 #912045 #7D9120 #20916C
split-complementary
#342091 #916C20 #459120
monochromatic
#100A2D #22155F #342091 #462BC3 #6A52D9

Accessibility & contrast

On white

11.92
#342091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#342091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342091
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342091#FFFFFF#000000##FFFFFF
##3420911.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342091;
/* rgb */ color: rgb(52, 32, 145);
/* oklch */ color: oklch(35.5% 0.172 281.1);
Tailwind
colors: {
  custom: {
    50: '#785fb2',
    500: '#342091',
    950: '#000000',
  },
}
SCSS
$custom: #342091;
$custom-light: #785fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#342091",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 145
  },
  "hsl": {
    "h": 250.619,
    "s": 63.842,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35492,
    "c": 0.17231,
    "h": 281.1
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#342091
secondary
#A9BC51
accent
#E741C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342091

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

Preview Lab → · Contrast checker → · Palette generator →

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