#3A218F#3A218F

#3A218F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.168 H 284.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#3A218F
RGBrgb(58, 33, 143)
HSLhsl(254, 63%, 35%)
HSVhsv(254, 77%, 56%)
CMYKcmyk(59.4%, 76.9%, 0%, 43.9%)
CIE-LABlab(23.57, 41.43, -56.43)
CIE-LCHlch(23.57, 70.01, 306.29°)
OKLaboklab(35.96% 0.0423 -0.1626)
OKLCHoklch(35.96% 0.168 284.6)
XYZxyz(7.2452, 3.9700, 26.3658)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A218F #768F21
analogous
#213F8F #3A218F #71218F
triadic
#3A218F #8F3A21 #218F3A
tetradic
#3A218F #8F213F #768F21 #218F71
square
#3A218F #8F213F #768F21 #218F71
split-complementary
#3A218F #8F7121 #3F8F21
monochromatic
#120A2C #26165D #3A218F #4E2CC1 #7153D7

Accessibility & contrast

On white

11.71
#3A218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A218F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A218F#FFFFFF#000000##FFFFFF
##3A218F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#094057
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a218f;
/* rgb */ color: rgb(58, 33, 143);
/* oklch */ color: oklch(36.0% 0.168 284.6);
Tailwind
colors: {
  custom: {
    50: '#7b5fb1',
    500: '#3a218f',
    950: '#000000',
  },
}
SCSS
$custom: #3a218f;
$custom-light: #7b5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a218f",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 253.636,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35956,
    "c": 0.16797,
    "h": 284.6
  },
  "luminance": 0.0397
}

Semantic roles & 50–950 ramp

primary
#3A218F
secondary
#A3BB51
accent
#E642C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A218F

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

Preview Lab → · Contrast checker → · Palette generator →

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