#342282#342282

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

Color values

HEX#342282
RGBrgb(52, 34, 130)
HSLhsl(251, 59%, 32%)
HSVhsv(251, 74%, 51%)
CMYKcmyk(60%, 73.8%, 0%, 49%)
CIE-LABlab(21.89, 35.94, -51.08)
CIE-LCHlch(21.89, 62.46, 305.13°)
OKLaboklab(34.23% 0.0355 -0.1471)
OKLCHoklch(34.23% 0.151 283.6)
XYZxyz(6.0162, 3.4854, 21.4705)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342282 #708222
analogous
#224082 #342282 #642282
triadic
#342282 #823422 #228234
tetradic
#342282 #822240 #708222 #228264
square
#342282 #822240 #708222 #228264
split-complementary
#342282 #826422 #408222
monochromatic
#0D0921 #211551 #342282 #472FB3 #664ED1

Accessibility & contrast

On white

12.37
#342282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342282
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342282#FFFFFF#000000##FFFFFF
##3422821.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#073C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342282;
/* rgb */ color: rgb(52, 34, 130);
/* oklch */ color: oklch(34.2% 0.151 283.6);
Tailwind
colors: {
  custom: {
    50: '#755fa7',
    500: '#342282',
    950: '#000000',
  },
}
SCSS
$custom: #342282;
$custom-light: #755fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#342282",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 251.25,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.15133,
    "h": 283.6
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342282

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

Preview Lab → · Contrast checker → · Palette generator →

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