#342083#342083

#342083 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.155 H 283.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#342083
RGBrgb(52, 32, 131)
HSLhsl(252, 61%, 32%)
HSVhsv(252, 76%, 51%)
CMYKcmyk(60.3%, 75.6%, 0%, 48.6%)
CIE-LABlab(21.58, 37.39, -52.21)
CIE-LCHlch(21.58, 64.22, 305.61°)
OKLaboklab(34.05% 0.0369 -0.1504)
OKLCHoklch(34.05% 0.155 283.8)
XYZxyz(6.0282, 3.4014, 21.8072)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342083 #6F8320
analogous
#203E83 #342083 #662083
triadic
#342083 #833420 #208334
tetradic
#342083 #83203E #6F8320 #208366
square
#342083 #83203E #6F8320 #208366
split-complementary
#342083 #836620 #3E8320
monochromatic
#0D0821 #201452 #342083 #482CB4 #664AD3

Accessibility & contrast

On white

12.50
#342083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#342083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342083
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342083#FFFFFF#000000##FFFFFF
##3420831.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342083;
/* rgb */ color: rgb(52, 32, 131);
/* oklch */ color: oklch(34.0% 0.155 283.8);
Tailwind
colors: {
  custom: {
    50: '#765ea8',
    500: '#342083',
    950: '#000000',
  },
}
SCSS
$custom: #342083;
$custom-light: #765ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#342083",
  "rgb": {
    "r": 52,
    "g": 32,
    "b": 131
  },
  "hsl": {
    "h": 252.121,
    "s": 60.736,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34046,
    "c": 0.15488,
    "h": 283.8
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#342083
secondary
#A0B649
accent
#E444C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #342083

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

Preview Lab → · Contrast checker → · Palette generator →

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