#342193#342193

#342193 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.174 H 280.6°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#342193
RGBrgb(52, 33, 147)
HSLhsl(250, 63%, 35%)
HSVhsv(250, 78%, 58%)
CMYKcmyk(64.6%, 77.6%, 0%, 42.4%)
CIE-LABlab(23.42, 41.90, -59.18)
CIE-LCHlch(23.42, 72.51, 305.30°)
OKLaboklab(35.83% 0.0321 -0.1708)
OKLCHoklch(35.83% 0.174 280.6)
XYZxyz(7.2248, 3.9238, 27.9748)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342193 #809321
analogous
#214793 #342193 #6D2193
triadic
#342193 #933421 #219334
tetradic
#342193 #932147 #809321 #21936D
square
#342193 #932147 #809321 #21936D
split-complementary
#342193 #936D21 #479321
monochromatic
#110B2F #221661 #342193 #462CC5 #6B55D9

Accessibility & contrast

On white

11.77
#342193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#342193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342193
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342193#FFFFFF#000000##FFFFFF
##3421931.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342193;
/* rgb */ color: rgb(52, 33, 147);
/* oklch */ color: oklch(35.8% 0.174 280.6);
Tailwind
colors: {
  custom: {
    50: '#795fb4',
    500: '#342193',
    950: '#000000',
  },
}
SCSS
$custom: #342193;
$custom-light: #795fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#342193",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 250,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35832,
    "c": 0.17378,
    "h": 280.6
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#342193
secondary
#ABBD53
accent
#E641CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342193

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

Preview Lab → · Contrast checker → · Palette generator →

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