#3A2283#3A2283

#3A2283 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.152 H 287.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#3A2283
RGBrgb(58, 34, 131)
HSLhsl(255, 59%, 32%)
HSVhsv(255, 74%, 51%)
CMYKcmyk(55.7%, 74%, 0%, 48.6%)
CIE-LABlab(22.59, 37.21, -50.54)
CIE-LCHlch(22.59, 62.76, 306.36°)
OKLaboklab(34.91% 0.0444 -0.1453)
OKLCHoklch(34.91% 0.152 287)
XYZxyz(6.4125, 3.6820, 21.8411)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2283 #6B8322
analogous
#223B83 #3A2283 #6A2283
triadic
#3A2283 #833A22 #22833A
tetradic
#3A2283 #83223B #6B8322 #22836A
square
#3A2283 #83223B #6B8322 #22836A
split-complementary
#3A2283 #836A22 #3B8322
monochromatic
#0F0922 #241552 #3A2283 #502FB4 #6F4ED1

Accessibility & contrast

On white

12.09
#3A2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A2283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2283
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2283#FFFFFF#000000##FFFFFF
##3A22831.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#1C3C50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2283;
/* rgb */ color: rgb(58, 34, 131);
/* oklch */ color: oklch(34.9% 0.152 287.0);
Tailwind
colors: {
  custom: {
    50: '#795fa8',
    500: '#3a2283',
    950: '#000000',
  },
}
SCSS
$custom: #3a2283;
$custom-light: #795fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2283",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 254.845,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34906,
    "c": 0.15197,
    "h": 287
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#3A2283
secondary
#9BB44C
accent
#E246BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2283

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

Preview Lab → · Contrast checker → · Palette generator →

#3A2283 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva