#342190#342190

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

Color values

HEX#342190
RGBrgb(52, 33, 144)
HSLhsl(250, 63%, 35%)
HSVhsv(250, 77%, 56%)
CMYKcmyk(63.9%, 77.1%, 0%, 43.5%)
CIE-LABlab(23.10, 40.96, -57.84)
CIE-LCHlch(23.10, 70.87, 305.30°)
OKLaboklab(35.52% 0.0329 -0.1669)
OKLCHoklch(35.52% 0.17 281.1)
XYZxyz(6.9925, 3.8309, 26.7511)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342190 #7D9021
analogous
#214690 #342190 #6B2190
triadic
#342190 #903421 #219034
tetradic
#342190 #902146 #7D9021 #21906B
square
#342190 #902146 #7D9021 #21906B
split-complementary
#342190 #906B21 #469021
monochromatic
#100A2C #22165E #342190 #462CC2 #6A54D8

Accessibility & contrast

On white

11.89
#342190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342190
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342190#FFFFFF#000000##FFFFFF
##3421901.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342190;
/* rgb */ color: rgb(52, 33, 144);
/* oklch */ color: oklch(35.5% 0.170 281.1);
Tailwind
colors: {
  custom: {
    50: '#785fb2',
    500: '#342190',
    950: '#000000',
  },
}
SCSS
$custom: #342190;
$custom-light: #785fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#342190",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 250.27,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35518,
    "c": 0.17009,
    "h": 281.1
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342190

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

Preview Lab → · Contrast checker → · Palette generator →

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