#342388#342388

#342388 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.158 H 282.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#342388
RGBrgb(52, 35, 136)
HSLhsl(250, 59%, 34%)
HSVhsv(250, 74%, 53%)
CMYKcmyk(61.8%, 74.3%, 0%, 46.7%)
CIE-LABlab(22.69, 37.30, -53.55)
CIE-LCHlch(22.69, 65.25, 304.86°)
OKLaboklab(34.98% 0.0334 -0.1543)
OKLCHoklch(34.98% 0.158 282.2)
XYZxyz(6.4598, 3.7093, 23.6633)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342388 #778823
analogous
#234488 #342388 #662388
triadic
#342388 #883423 #238834
tetradic
#342388 #882344 #778823 #238866
square
#342388 #882344 #778823 #238866
split-complementary
#342388 #886623 #448823
monochromatic
#0F0A27 #211657 #342388 #4730B9 #6853D3

Accessibility & contrast

On white

12.06
#342388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#342388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342388
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342388#FFFFFF#000000##FFFFFF
##3423881.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342388;
/* rgb */ color: rgb(52, 35, 136);
/* oklch */ color: oklch(35.0% 0.158 282.2);
Tailwind
colors: {
  custom: {
    50: '#7660ac',
    500: '#342388',
    950: '#000000',
  },
}
SCSS
$custom: #342388;
$custom-light: #7660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342388",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 250.099,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34977,
    "c": 0.15789,
    "h": 282.2
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#342388
secondary
#A5B750
accent
#E246C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342388

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

Preview Lab → · Contrast checker → · Palette generator →

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