#342174#342174

#342174 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.7% C 0.134 H 287.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#342174
RGBrgb(52, 33, 116)
HSLhsl(254, 56%, 29%)
HSVhsv(254, 72%, 45%)
CMYKcmyk(55.2%, 71.6%, 0%, 54.5%)
CIE-LABlab(20.36, 32.02, -44.68)
CIE-LCHlch(20.36, 54.97, 305.63°)
OKLaboklab(32.73% 0.0392 -0.1284)
OKLCHoklch(32.73% 0.134 287)
XYZxyz(5.1115, 3.0785, 16.8445)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342174 #617421
analogous
#213874 #342174 #5E2174
triadic
#342174 #743421 #217434
tetradic
#342174 #742138 #617421 #21745E
square
#342174 #742138 #617421 #21745E
split-complementary
#342174 #745E21 #387421
monochromatic
#0B0718 #1F1344 #342174 #492FA4 #6445CA

Accessibility & contrast

On white

13.00
#342174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#342174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342174
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342174#FFFFFF#000000##FFFFFF
##3421741.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#1B3647
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342174;
/* rgb */ color: rgb(52, 33, 116);
/* oklch */ color: oklch(32.7% 0.134 287.0);
Tailwind
colors: {
  custom: {
    50: '#735e9d',
    500: '#342174',
    950: '#000000',
  },
}
SCSS
$custom: #342174;
$custom-light: #735e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#342174",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 253.735,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32731,
    "c": 0.13421,
    "h": 287
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#342174
secondary
#92A749
accent
#DF49BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #342174

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

Preview Lab → · Contrast checker → · Palette generator →

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