#342288#342288

#342288 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.159 H 282.4°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#342288
RGBrgb(52, 34, 136)
HSLhsl(251, 60%, 33%)
HSVhsv(251, 75%, 53%)
CMYKcmyk(61.8%, 75%, 0%, 46.7%)
CIE-LABlab(22.48, 37.86, -53.88)
CIE-LCHlch(22.48, 65.85, 305.10°)
OKLaboklab(34.83% 0.0341 -0.1553)
OKLCHoklch(34.83% 0.159 282.4)
XYZxyz(6.4308, 3.6513, 23.6537)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342288 #768822
analogous
#224388 #342288 #672288
triadic
#342288 #883422 #228834
tetradic
#342288 #882243 #768822 #228867
square
#342288 #882243 #768822 #228867
split-complementary
#342288 #886722 #438822
monochromatic
#0F0A26 #211657 #342288 #472EB9 #6851D3

Accessibility & contrast

On white

12.14
#342288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#342288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342288
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342288#FFFFFF#000000##FFFFFF
##3422881.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342288;
/* rgb */ color: rgb(52, 34, 136);
/* oklch */ color: oklch(34.8% 0.159 282.4);
Tailwind
colors: {
  custom: {
    50: '#765fac',
    500: '#342288',
    950: '#000000',
  },
}
SCSS
$custom: #342288;
$custom-light: #765fac;
$custom-dark: #000000;
JSON
{
  "hex": "#342288",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 250.588,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34834,
    "c": 0.15901,
    "h": 282.4
  },
  "luminance": 0.03652
}

Semantic roles & 50–950 ramp

primary
#342288
secondary
#A5B74F
accent
#E345C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #342288

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

Preview Lab → · Contrast checker → · Palette generator →

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