#342072#342072

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

Color values

HEX#342072
RGBrgb(52, 32, 114)
HSLhsl(255, 56%, 29%)
HSVhsv(255, 72%, 45%)
CMYKcmyk(54.4%, 71.9%, 0%, 55.3%)
CIE-LABlab(19.95, 31.98, -44.05)
CIE-LCHlch(19.95, 54.44, 305.98°)
OKLaboklab(32.39% 0.0406 -0.1265)
OKLCHoklch(32.39% 0.133 287.8)
XYZxyz(4.9691, 2.9778, 16.2293)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342072 #5E7220
analogous
#203572 #342072 #5D2072
triadic
#342072 #723420 #207234
tetradic
#342072 #722035 #5E7220 #20725D
square
#342072 #722035 #5E7220 #20725D
split-complementary
#342072 #725D20 #357220
monochromatic
#0B0718 #1E1342 #342072 #4A2DA2 #6342CA

Accessibility & contrast

On white

13.16
#342072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342072
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342072#FFFFFF#000000##FFFFFF
##3420721.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#1C3546
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342072;
/* rgb */ color: rgb(52, 32, 114);
/* oklch */ color: oklch(32.4% 0.133 287.8);
Tailwind
colors: {
  custom: {
    50: '#725d9b',
    500: '#342072',
    950: '#000000',
  },
}
SCSS
$custom: #342072;
$custom-light: #725d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#342072",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 254.634,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32387,
    "c": 0.13284,
    "h": 287.8
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#342072
secondary
#8FA648
accent
#DF48BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #342072

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

Preview Lab → · Contrast checker → · Palette generator →

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