#342183#342183

#342183 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.154 H 283.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#342183
RGBrgb(52, 33, 131)
HSLhsl(252, 60%, 32%)
HSVhsv(252, 75%, 51%)
CMYKcmyk(60.3%, 74.8%, 0%, 48.6%)
CIE-LABlab(21.79, 36.83, -51.89)
CIE-LCHlch(21.79, 63.63, 305.37°)
OKLaboklab(34.19% 0.0361 -0.1495)
OKLCHoklch(34.19% 0.154 283.6)
XYZxyz(6.0555, 3.4561, 21.8163)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342183 #708321
analogous
#213F83 #342183 #652183
triadic
#342183 #833421 #218334
tetradic
#342183 #83213F #708321 #218365
square
#342183 #83213F #708321 #218365
split-complementary
#342183 #836521 #3F8321
monochromatic
#0D0821 #211552 #342183 #472DB4 #664CD2

Accessibility & contrast

On white

12.42
#342183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#342183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342183
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342183#FFFFFF#000000##FFFFFF
##3421831.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#053C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342183;
/* rgb */ color: rgb(52, 33, 131);
/* oklch */ color: oklch(34.2% 0.154 283.6);
Tailwind
colors: {
  custom: {
    50: '#755ea8',
    500: '#342183',
    950: '#000000',
  },
}
SCSS
$custom: #342183;
$custom-light: #755ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#342183",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 251.633,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34188,
    "c": 0.15376,
    "h": 283.6
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#342183
secondary
#A0B54B
accent
#E345C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342183

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

Preview Lab → · Contrast checker → · Palette generator →

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