#342076#342076

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

Color values

HEX#342076
RGBrgb(52, 32, 118)
HSLhsl(254, 57%, 29%)
HSVhsv(254, 73%, 46%)
CMYKcmyk(55.9%, 72.9%, 0%, 53.7%)
CIE-LABlab(20.33, 33.26, -46.02)
CIE-LCHlch(20.33, 56.78, 305.86°)
OKLaboklab(32.77% 0.0398 -0.1323)
OKLCHoklch(32.77% 0.138 286.7)
XYZxyz(5.2017, 3.0708, 17.4547)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342076 #627620
analogous
#203776 #342076 #5F2076
triadic
#342076 #763420 #207634
tetradic
#342076 #762037 #627620 #20765F
square
#342076 #762037 #627620 #20765F
split-complementary
#342076 #765F20 #377620
monochromatic
#0B0718 #1F1346 #342076 #492DA6 #6444CC

Accessibility & contrast

On white

13.01
#342076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342076
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342076#FFFFFF#000000##FFFFFF
##3420761.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#193648
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #342076;
/* rgb */ color: rgb(52, 32, 118);
/* oklch */ color: oklch(32.8% 0.138 286.7);
Tailwind
colors: {
  custom: {
    50: '#735d9e',
    500: '#342076',
    950: '#000000',
  },
}
SCSS
$custom: #342076;
$custom-light: #735d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#342076",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 118
  },
  "hsl": {
    "h": 253.953,
    "s": 57.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32767,
    "c": 0.13811,
    "h": 286.7
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#342076
secondary
#93A948
accent
#E147BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #342076

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

Preview Lab → · Contrast checker → · Palette generator →

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