#342175#342175

#342175 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.136 H 286.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#342175
RGBrgb(52, 33, 117)
HSLhsl(254, 56%, 29%)
HSVhsv(254, 72%, 46%)
CMYKcmyk(55.6%, 71.8%, 0%, 54.1%)
CIE-LABlab(20.45, 32.35, -45.17)
CIE-LCHlch(20.45, 55.56, 305.60°)
OKLaboklab(32.82% 0.039 -0.1298)
OKLCHoklch(32.82% 0.136 286.7)
XYZxyz(5.1700, 3.1019, 17.1525)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342175 #627521
analogous
#213875 #342175 #5E2175
triadic
#342175 #753421 #217534
tetradic
#342175 #752138 #627521 #21755E
square
#342175 #752138 #627521 #21755E
split-complementary
#342175 #755E21 #387521
monochromatic
#0B0718 #1F1445 #342175 #492EA5 #6446CB

Accessibility & contrast

On white

12.96
#342175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342175
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342175#FFFFFF#000000##FFFFFF
##3421751.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#1A3748
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342175;
/* rgb */ color: rgb(52, 33, 117);
/* oklch */ color: oklch(32.8% 0.136 286.7);
Tailwind
colors: {
  custom: {
    50: '#735e9e',
    500: '#342175',
    950: '#000000',
  },
}
SCSS
$custom: #342175;
$custom-light: #735e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#342175",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 253.571,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32825,
    "c": 0.13553,
    "h": 286.7
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#342175
secondary
#93A84A
accent
#DF49BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #342175

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

Preview Lab → · Contrast checker → · Palette generator →

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