#342085#342085

#342085 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.157 H 283.4°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#342085
RGBrgb(52, 32, 133)
HSLhsl(252, 61%, 32%)
HSVhsv(252, 76%, 52%)
CMYKcmyk(60.9%, 75.9%, 0%, 47.8%)
CIE-LABlab(21.79, 38.03, -53.14)
CIE-LCHlch(21.79, 65.35, 305.59°)
OKLaboklab(34.25% 0.0364 -0.1531)
OKLCHoklch(34.25% 0.157 283.4)
XYZxyz(6.1650, 3.4561, 22.5280)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342085 #718520
analogous
#203F85 #342085 #662085
triadic
#342085 #853420 #208534
tetradic
#342085 #85203F #718520 #208566
square
#342085 #85203F #718520 #208566
split-complementary
#342085 #856620 #3F8520
monochromatic
#0D0822 #211454 #342085 #472CB6 #674CD4

Accessibility & contrast

On white

12.42
#342085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#342085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342085
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342085#FFFFFF#000000##FFFFFF
##3420851.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342085;
/* rgb */ color: rgb(52, 32, 133);
/* oklch */ color: oklch(34.2% 0.157 283.4);
Tailwind
colors: {
  custom: {
    50: '#765eaa',
    500: '#342085',
    950: '#000000',
  },
}
SCSS
$custom: #342085;
$custom-light: #765eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#342085",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 251.881,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34249,
    "c": 0.1574,
    "h": 283.4
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#342085
secondary
#A1B74A
accent
#E443C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342085

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

Preview Lab → · Contrast checker → · Palette generator →

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