#342286#342286

#342286 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.156 H 282.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#342286
RGBrgb(52, 34, 134)
HSLhsl(251, 60%, 33%)
HSVhsv(251, 75%, 53%)
CMYKcmyk(61.2%, 74.6%, 0%, 47.5%)
CIE-LABlab(22.28, 37.22, -52.95)
CIE-LCHlch(22.28, 64.73, 305.11°)
OKLaboklab(34.63% 0.0346 -0.1526)
OKLCHoklch(34.63% 0.156 282.8)
XYZxyz(6.2899, 3.5949, 22.9121)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342286 #748622
analogous
#224286 #342286 #662286
triadic
#342286 #863422 #228634
tetradic
#342286 #862242 #748622 #228666
square
#342286 #862242 #748622 #228666
split-complementary
#342286 #866622 #428622
monochromatic
#0E0924 #211655 #342286 #472EB7 #6750D3

Accessibility & contrast

On white

12.22
#342286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342286
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342286#FFFFFF#000000##FFFFFF
##3422861.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342286;
/* rgb */ color: rgb(52, 34, 134);
/* oklch */ color: oklch(34.6% 0.156 282.8);
Tailwind
colors: {
  custom: {
    50: '#765faa',
    500: '#342286',
    950: '#000000',
  },
}
SCSS
$custom: #342286;
$custom-light: #765faa;
$custom-dark: #000000;
JSON
{
  "hex": "#342286",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 250.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34632,
    "c": 0.15646,
    "h": 282.8
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#342286
secondary
#A3B64E
accent
#E345C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342286

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

Preview Lab → · Contrast checker → · Palette generator →

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