#342387#342387

#342387 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.157 H 282.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#342387
RGBrgb(52, 35, 135)
HSLhsl(250, 59%, 33%)
HSVhsv(250, 74%, 53%)
CMYKcmyk(61.5%, 74.1%, 0%, 47.1%)
CIE-LABlab(22.59, 36.97, -53.08)
CIE-LCHlch(22.59, 64.69, 304.86°)
OKLaboklab(34.88% 0.0336 -0.153)
OKLCHoklch(34.88% 0.157 282.4)
XYZxyz(6.3890, 3.6810, 23.2908)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342387 #768723
analogous
#234487 #342387 #662387
triadic
#342387 #873423 #238734
tetradic
#342387 #872344 #768723 #238766
square
#342387 #872344 #768723 #238766
split-complementary
#342387 #876623 #448723
monochromatic
#0F0A26 #211656 #342387 #4730B8 #6852D2

Accessibility & contrast

On white

12.10
#342387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342387
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342387#FFFFFF#000000##FFFFFF
##3423871.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342387;
/* rgb */ color: rgb(52, 35, 135);
/* oklch */ color: oklch(34.9% 0.157 282.4);
Tailwind
colors: {
  custom: {
    50: '#7660ab',
    500: '#342387',
    950: '#000000',
  },
}
SCSS
$custom: #342387;
$custom-light: #7660ab;
$custom-dark: #000000;
JSON
{
  "hex": "#342387",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 250.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34877,
    "c": 0.15662,
    "h": 282.4
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342387

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

Preview Lab → · Contrast checker → · Palette generator →

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