#3A218B#3A218B

#3A218B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.163 H 285.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#3A218B
RGBrgb(58, 33, 139)
HSLhsl(254, 62%, 34%)
HSVhsv(254, 76%, 55%)
CMYKcmyk(58.3%, 76.3%, 0%, 45.5%)
CIE-LABlab(23.17, 40.21, -54.60)
CIE-LCHlch(23.17, 67.81, 306.37°)
OKLaboklab(35.55% 0.0433 -0.1572)
OKLCHoklch(35.55% 0.163 285.4)
XYZxyz(6.9476, 3.8509, 24.7983)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A218B #728B21
analogous
#213D8B #3A218B #6F218B
triadic
#3A218B #8B3A21 #218B3A
tetradic
#3A218B #8B213D #728B21 #218B6F
square
#3A218B #8B213D #728B21 #218B6F
split-complementary
#3A218B #8B6F21 #3D8B21
monochromatic
#110A28 #25155A #3A218B #4F2DBC #7051D6

Accessibility & contrast

On white

11.86
#3A218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A218B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A218B#FFFFFF#000000##FFFFFF
##3A218B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#113F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a218b;
/* rgb */ color: rgb(58, 33, 139);
/* oklch */ color: oklch(35.6% 0.163 285.4);
Tailwind
colors: {
  custom: {
    50: '#7a5fae',
    500: '#3a218b',
    950: '#000000',
  },
}
SCSS
$custom: #3a218b;
$custom-light: #7a5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a218b",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 254.151,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35554,
    "c": 0.16307,
    "h": 285.4
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#3A218B
secondary
#A0B94F
accent
#E543BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A218B

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

Preview Lab → · Contrast checker → · Palette generator →

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