#342173#342173

#342173 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.6% C 0.133 H 287.2°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#342173
RGBrgb(52, 33, 115)
HSLhsl(254, 55%, 29%)
HSVhsv(254, 71%, 45%)
CMYKcmyk(54.8%, 71.3%, 0%, 54.9%)
CIE-LABlab(20.26, 31.70, -44.19)
CIE-LCHlch(20.26, 54.39, 305.66°)
OKLaboklab(32.64% 0.0394 -0.1269)
OKLCHoklch(32.64% 0.133 287.2)
XYZxyz(5.0536, 3.0553, 16.5398)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342173 #607321
analogous
#213773 #342173 #5D2173
triadic
#342173 #733421 #217334
tetradic
#342173 #732137 #607321 #21735D
square
#342173 #732137 #607321 #21735D
split-complementary
#342173 #735D21 #377321
monochromatic
#0B0718 #1E1343 #342173 #4A2FA3 #6445CA

Accessibility & contrast

On white

13.03
#342173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#342173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342173
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342173#FFFFFF#000000##FFFFFF
##3421731.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#1C3647
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342173;
/* rgb */ color: rgb(52, 33, 115);
/* oklch */ color: oklch(32.6% 0.133 287.2);
Tailwind
colors: {
  custom: {
    50: '#725e9c',
    500: '#342173',
    950: '#000000',
  },
}
SCSS
$custom: #342173;
$custom-light: #725e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#342173",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 253.902,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32637,
    "c": 0.13287,
    "h": 287.2
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#342173
secondary
#91A649
accent
#DF49BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #342173

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

Preview Lab → · Contrast checker → · Palette generator →

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