#342168#342168

#342168 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.6% C 0.118 H 290.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#342168
RGBrgb(52, 33, 104)
HSLhsl(256, 52%, 27%)
HSVhsv(256, 68%, 41%)
CMYKcmyk(50%, 68.3%, 0%, 59.2%)
CIE-LABlab(19.30, 28.18, -38.63)
CIE-LCHlch(19.30, 47.82, 306.11°)
OKLaboklab(31.64% 0.041 -0.1106)
OKLCHoklch(31.64% 0.118 290.3)
XYZxyz(4.4580, 2.8171, 13.4029)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342168 #556821
analogous
#213268 #342168 #582168
triadic
#342168 #683421 #216834
tetradic
#342168 #682132 #556821 #216858
square
#342168 #682132 #556821 #216858
split-complementary
#342168 #685821 #326821
monochromatic
#0C0717 #1D123A #342168 #4B3096 #6441C3

Accessibility & contrast

On white

13.43
#342168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#342168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342168
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342168#FFFFFF#000000##FFFFFF
##3421681.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#002D67
Tritanopia (blue-blind)
#233241
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342168;
/* rgb */ color: rgb(52, 33, 104);
/* oklch */ color: oklch(31.6% 0.118 290.3);
Tailwind
colors: {
  custom: {
    50: '#715d94',
    500: '#342168',
    950: '#000000',
  },
}
SCSS
$custom: #342168;
$custom-light: #715d94;
$custom-dark: #000000;
JSON
{
  "hex": "#342168",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 256.056,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31638,
    "c": 0.11794,
    "h": 290.3
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#342168
secondary
#869C49
accent
#DB4DB5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #342168

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

Preview Lab → · Contrast checker → · Palette generator →

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