#342185#342185

#342185 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.156 H 283.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#342185
RGBrgb(52, 33, 133)
HSLhsl(251, 60%, 33%)
HSVhsv(251, 75%, 52%)
CMYKcmyk(60.9%, 75.2%, 0%, 47.8%)
CIE-LABlab(21.98, 37.47, -52.82)
CIE-LCHlch(21.98, 64.76, 305.35°)
OKLaboklab(34.39% 0.0356 -0.1522)
OKLCHoklch(34.39% 0.156 283.2)
XYZxyz(6.1924, 3.5108, 22.5371)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342185 #728521
analogous
#214085 #342185 #662185
triadic
#342185 #853421 #218534
tetradic
#342185 #852140 #728521 #218566
square
#342185 #852140 #728521 #218566
split-complementary
#342185 #856621 #408521
monochromatic
#0E0923 #211554 #342185 #472DB6 #674DD3

Accessibility & contrast

On white

12.34
#342185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#342185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342185
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342185#FFFFFF#000000##FFFFFF
##3421851.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342185;
/* rgb */ color: rgb(52, 33, 133);
/* oklch */ color: oklch(34.4% 0.156 283.2);
Tailwind
colors: {
  custom: {
    50: '#765fa9',
    500: '#342185',
    950: '#000000',
  },
}
SCSS
$custom: #342185;
$custom-light: #765fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#342185",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 251.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34389,
    "c": 0.1563,
    "h": 283.2
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#342185
secondary
#A2B64C
accent
#E344C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342185

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

Preview Lab → · Contrast checker → · Palette generator →

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