#342389#342389

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

Color values

HEX#342389
RGBrgb(52, 35, 137)
HSLhsl(250, 59%, 34%)
HSVhsv(250, 74%, 54%)
CMYKcmyk(62%, 74.5%, 0%, 46.3%)
CIE-LABlab(22.79, 37.62, -54.01)
CIE-LCHlch(22.79, 65.82, 304.86°)
OKLaboklab(35.08% 0.0331 -0.1557)
OKLCHoklch(35.08% 0.159 282)
XYZxyz(6.5312, 3.7378, 24.0394)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342389 #788923
analogous
#234589 #342389 #672389
triadic
#342389 #893423 #238934
tetradic
#342389 #892345 #788923 #238967
square
#342389 #892345 #788923 #238967
split-complementary
#342389 #896723 #458923
monochromatic
#0F0A28 #211758 #342389 #472FBA #6953D3

Accessibility & contrast

On white

12.02
#342389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#342389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342389
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342389#FFFFFF#000000##FFFFFF
##3423891.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342389;
/* rgb */ color: rgb(52, 35, 137);
/* oklch */ color: oklch(35.1% 0.159 282.0);
Tailwind
colors: {
  custom: {
    50: '#7660ac',
    500: '#342389',
    950: '#000000',
  },
}
SCSS
$custom: #342389;
$custom-light: #7660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342389",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 137
  },
  "hsl": {
    "h": 250,
    "s": 59.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35078,
    "c": 0.15918,
    "h": 282
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#342389
secondary
#A6B751
accent
#E245C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #342389

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

Preview Lab → · Contrast checker → · Palette generator →

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