#342383#342383

#342383 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.151 H 283.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#342383
RGBrgb(52, 35, 131)
HSLhsl(251, 58%, 33%)
HSVhsv(251, 73%, 51%)
CMYKcmyk(60.3%, 73.3%, 0%, 48.6%)
CIE-LABlab(22.20, 35.68, -51.21)
CIE-LCHlch(22.20, 62.41, 304.87°)
OKLaboklab(34.48% 0.0344 -0.1475)
OKLCHoklch(34.48% 0.151 283.1)
XYZxyz(6.1127, 3.5704, 21.8354)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342383 #728323
analogous
#234283 #342383 #642383
triadic
#342383 #833423 #238334
tetradic
#342383 #832342 #728323 #238364
square
#342383 #832342 #728323 #238364
split-complementary
#342383 #836423 #428323
monochromatic
#0E0922 #211653 #342383 #4730B3 #6750D0

Accessibility & contrast

On white

12.25
#342383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#342383 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342383
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342383#FFFFFF#000000##FFFFFF
##3423831.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#043D50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342383;
/* rgb */ color: rgb(52, 35, 131);
/* oklch */ color: oklch(34.5% 0.151 283.1);
Tailwind
colors: {
  custom: {
    50: '#7560a8',
    500: '#342383',
    950: '#000000',
  },
}
SCSS
$custom: #342383;
$custom-light: #7560a8;
$custom-dark: #000000;
JSON
{
  "hex": "#342383",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 131
  },
  "hsl": {
    "h": 250.625,
    "s": 57.831,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34481,
    "c": 0.15146,
    "h": 283.1
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#342383
secondary
#A2B44E
accent
#E147C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342383

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

Preview Lab → · Contrast checker → · Palette generator →

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