#342087#342087

#342087 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.160 H 283.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#342087
RGBrgb(52, 32, 135)
HSLhsl(252, 62%, 33%)
HSVhsv(252, 76%, 53%)
CMYKcmyk(61.5%, 76.3%, 0%, 47.1%)
CIE-LABlab(21.99, 38.66, -54.07)
CIE-LCHlch(21.99, 66.47, 305.57°)
OKLaboklab(34.45% 0.0359 -0.1558)
OKLCHoklch(34.45% 0.16 283)
XYZxyz(6.3045, 3.5119, 23.2626)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342087 #738720
analogous
#204087 #342087 #672087
triadic
#342087 #873420 #208734
tetradic
#342087 #872040 #738720 #208767
square
#342087 #872040 #738720 #208767
split-complementary
#342087 #876720 #408720
monochromatic
#0E0924 #211456 #342087 #472CB8 #674DD5

Accessibility & contrast

On white

12.34
#342087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#342087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342087
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342087#FFFFFF#000000##FFFFFF
##3420871.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342087;
/* rgb */ color: rgb(52, 32, 135);
/* oklch */ color: oklch(34.5% 0.160 283.0);
Tailwind
colors: {
  custom: {
    50: '#765eab',
    500: '#342087',
    950: '#000000',
  },
}
SCSS
$custom: #342087;
$custom-light: #765eab;
$custom-dark: #000000;
JSON
{
  "hex": "#342087",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 251.65,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34453,
    "c": 0.15992,
    "h": 283
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#342087
secondary
#A3B84B
accent
#E543C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #342087

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

Preview Lab → · Contrast checker → · Palette generator →

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