#342287#342287

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

Color values

HEX#342287
RGBrgb(52, 34, 135)
HSLhsl(251, 60%, 33%)
HSVhsv(251, 75%, 53%)
CMYKcmyk(61.5%, 74.8%, 0%, 47.1%)
CIE-LABlab(22.38, 37.54, -53.42)
CIE-LCHlch(22.38, 65.29, 305.10°)
OKLaboklab(34.73% 0.0344 -0.1539)
OKLCHoklch(34.73% 0.158 282.6)
XYZxyz(6.3600, 3.6230, 23.2811)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342287 #758722
analogous
#224287 #342287 #662287
triadic
#342287 #873422 #228734
tetradic
#342287 #872242 #758722 #228766
square
#342287 #872242 #758722 #228766
split-complementary
#342287 #876622 #428722
monochromatic
#0E0925 #211656 #342287 #472EB8 #6850D3

Accessibility & contrast

On white

12.18
#342287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342287
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342287#FFFFFF#000000##FFFFFF
##3422871.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342287;
/* rgb */ color: rgb(52, 34, 135);
/* oklch */ color: oklch(34.7% 0.158 282.6);
Tailwind
colors: {
  custom: {
    50: '#765fab',
    500: '#342287',
    950: '#000000',
  },
}
SCSS
$custom: #342287;
$custom-light: #765fab;
$custom-dark: #000000;
JSON
{
  "hex": "#342287",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 250.693,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34733,
    "c": 0.15774,
    "h": 282.6
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#342287
secondary
#A4B74E
accent
#E345C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342287

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

Preview Lab → · Contrast checker → · Palette generator →

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