#3A2B84#3A2B84

#3A2B84 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.4% C 0.142 H 284.6°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#3A2B84
RGBrgb(58, 43, 132)
HSLhsl(250, 51%, 34%)
HSVhsv(250, 67%, 52%)
CMYKcmyk(56.1%, 67.4%, 0%, 48.2%)
CIE-LABlab(24.62, 32.21, -47.86)
CIE-LCHlch(24.62, 57.69, 303.95°)
OKLaboklab(36.39% 0.0357 -0.1375)
OKLCHoklch(36.39% 0.142 284.6)
XYZxyz(6.7724, 4.2929, 22.2971)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2B84 #75842B
analogous
#2B4984 #3A2B84 #672B84
triadic
#3A2B84 #843A2B #2B843A
tetradic
#3A2B84 #842B49 #75842B #2B8467
square
#3A2B84 #842B49 #75842B #2B8467
split-complementary
#3A2B84 #84672B #49842B
monochromatic
#110D28 #261C56 #3A2B84 #4E3AB2 #715FCB

Accessibility & contrast

On white

11.30
#3A2B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A2B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2B84
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2B84#FFFFFF#000000##FFFFFF
##3A2B841.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#194153
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2b84;
/* rgb */ color: rgb(58, 43, 132);
/* oklch */ color: oklch(36.4% 0.142 284.6);
Tailwind
colors: {
  custom: {
    50: '#7865a9',
    500: '#3a2b84',
    950: '#000000',
  },
}
SCSS
$custom: #3a2b84;
$custom-light: #7865a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2b84",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 250.112,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36386,
    "c": 0.14203,
    "h": 284.6
  },
  "luminance": 0.04293
}

Semantic roles & 50–950 ramp

primary
#3A2B84
secondary
#A2B15A
accent
#DA4DC3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3A2B84

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

Preview Lab → · Contrast checker → · Palette generator →

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