#342385#342385

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

Color values

HEX#342385
RGBrgb(52, 35, 133)
HSLhsl(250, 58%, 33%)
HSVhsv(250, 74%, 52%)
CMYKcmyk(60.9%, 73.7%, 0%, 47.8%)
CIE-LABlab(22.39, 36.33, -52.15)
CIE-LCHlch(22.39, 63.55, 304.86°)
OKLaboklab(34.68% 0.034 -0.1502)
OKLCHoklch(34.68% 0.154 282.8)
XYZxyz(6.2495, 3.6252, 22.5562)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342385 #748523
analogous
#234385 #342385 #652385
triadic
#342385 #853423 #238534
tetradic
#342385 #852343 #748523 #238565
square
#342385 #852343 #748523 #238565
split-complementary
#342385 #856523 #438523
monochromatic
#0E0924 #211655 #342385 #4730B5 #6751D1

Accessibility & contrast

On white

12.17
#342385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342385
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342385#FFFFFF#000000##FFFFFF
##3423851.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342385;
/* rgb */ color: rgb(52, 35, 133);
/* oklch */ color: oklch(34.7% 0.154 282.8);
Tailwind
colors: {
  custom: {
    50: '#7660a9',
    500: '#342385',
    950: '#000000',
  },
}
SCSS
$custom: #342385;
$custom-light: #7660a9;
$custom-dark: #000000;
JSON
{
  "hex": "#342385",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 133
  },
  "hsl": {
    "h": 250.408,
    "s": 58.333,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34678,
    "c": 0.15404,
    "h": 282.8
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#342385
secondary
#A3B54F
accent
#E246C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342385

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

Preview Lab → · Contrast checker → · Palette generator →

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