#342170#342170

#342170 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.129 H 288.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#342170
RGBrgb(52, 33, 112)
HSLhsl(254, 54%, 28%)
HSVhsv(254, 71%, 44%)
CMYKcmyk(53.6%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.99, 30.74, -42.70)
CIE-LCHlch(19.99, 52.61, 305.75°)
OKLaboklab(32.36% 0.0399 -0.1225)
OKLCHoklch(32.36% 0.129 288)
XYZxyz(4.8838, 2.9874, 15.6454)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342170 #5D7021
analogous
#213570 #342170 #5B2170
triadic
#342170 #703421 #217034
tetradic
#342170 #702135 #5D7021 #21705B
square
#342170 #702135 #5D7021 #21705B
split-complementary
#342170 #705B21 #357021
monochromatic
#0B0718 #1E1341 #342170 #4A2F9F #6344C8

Accessibility & contrast

On white

13.14
#342170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#342170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342170
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342170#FFFFFF#000000##FFFFFF
##3421701.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#1E3545
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342170;
/* rgb */ color: rgb(52, 33, 112);
/* oklch */ color: oklch(32.4% 0.129 288.0);
Tailwind
colors: {
  custom: {
    50: '#725e9a',
    500: '#342170',
    950: '#000000',
  },
}
SCSS
$custom: #342170;
$custom-light: #725e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#342170",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 254.43,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32359,
    "c": 0.12884,
    "h": 288
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#342170
secondary
#8EA449
accent
#DE4ABA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #342170

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

Preview Lab → · Contrast checker → · Palette generator →

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