#3A2284#3A2284

#3A2284 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.153 H 286.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3A2284
RGBrgb(58, 34, 132)
HSLhsl(255, 59%, 33%)
HSVhsv(255, 74%, 52%)
CMYKcmyk(56.1%, 74.2%, 0%, 48.2%)
CIE-LABlab(22.69, 37.52, -51.01)
CIE-LCHlch(22.69, 63.32, 306.33°)
OKLaboklab(35% 0.0442 -0.1467)
OKLCHoklch(35% 0.153 286.8)
XYZxyz(6.4806, 3.7092, 22.1998)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2284 #6C8422
analogous
#223B84 #3A2284 #6B2284
triadic
#3A2284 #843A22 #22843A
tetradic
#3A2284 #84223B #6C8422 #22846B
square
#3A2284 #84223B #6C8422 #22846B
split-complementary
#3A2284 #846B22 #3B8422
monochromatic
#0F0923 #251553 #3A2284 #4F2FB5 #6F4FD2

Accessibility & contrast

On white

12.06
#3A2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2284
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2284#FFFFFF#000000##FFFFFF
##3A22841.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#1B3C51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2284;
/* rgb */ color: rgb(58, 34, 132);
/* oklch */ color: oklch(35.0% 0.153 286.8);
Tailwind
colors: {
  custom: {
    50: '#7960a9',
    500: '#3a2284',
    950: '#000000',
  },
}
SCSS
$custom: #3a2284;
$custom-light: #7960a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2284",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 254.694,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35002,
    "c": 0.15323,
    "h": 286.8
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#3A2284
secondary
#9BB54D
accent
#E246BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2284

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

Preview Lab → · Contrast checker → · Palette generator →

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