#342283#342283

#342283 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.153 H 283.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#342283
RGBrgb(52, 34, 131)
HSLhsl(251, 59%, 32%)
HSVhsv(251, 74%, 51%)
CMYKcmyk(60.3%, 74%, 0%, 48.6%)
CIE-LABlab(21.99, 36.26, -51.55)
CIE-LCHlch(21.99, 63.03, 305.12°)
OKLaboklab(34.33% 0.0353 -0.1485)
OKLCHoklch(34.33% 0.153 283.4)
XYZxyz(6.0837, 3.5124, 21.8257)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342283 #718322
analogous
#224183 #342283 #652283
triadic
#342283 #833422 #228334
tetradic
#342283 #832241 #718322 #228365
square
#342283 #832241 #718322 #228365
split-complementary
#342283 #836522 #418322
monochromatic
#0D0922 #211552 #342283 #472FB4 #674ED1

Accessibility & contrast

On white

12.33
#342283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342283
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342283#FFFFFF#000000##FFFFFF
##3422831.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342283;
/* rgb */ color: rgb(52, 34, 131);
/* oklch */ color: oklch(34.3% 0.153 283.4);
Tailwind
colors: {
  custom: {
    50: '#755fa8',
    500: '#342283',
    950: '#000000',
  },
}
SCSS
$custom: #342283;
$custom-light: #755fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#342283",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 251.134,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34333,
    "c": 0.15262,
    "h": 283.4
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#342283
secondary
#A1B44C
accent
#E246C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342283

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

Preview Lab → · Contrast checker → · Palette generator →

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