#3A2188#3A2188

#3A2188 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.159 H 286.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#3A2188
RGBrgb(58, 33, 136)
HSLhsl(255, 61%, 33%)
HSVhsv(255, 76%, 53%)
CMYKcmyk(57.4%, 75.7%, 0%, 46.7%)
CIE-LABlab(22.88, 39.30, -53.21)
CIE-LCHlch(22.88, 66.15, 306.45°)
OKLaboklab(35.25% 0.0441 -0.1531)
OKLCHoklch(35.25% 0.159 286.1)
XYZxyz(6.7314, 3.7644, 23.6597)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2188 #6F8821
analogous
#213B88 #3A2188 #6D2188
triadic
#3A2188 #883A21 #21883A
tetradic
#3A2188 #88213B #6F8821 #21886D
square
#3A2188 #88213B #6F8821 #21886D
split-complementary
#3A2188 #886D21 #3B8821
monochromatic
#100925 #251557 #3A2188 #4F2DB9 #6F4FD4

Accessibility & contrast

On white

11.98
#3A2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3A2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2188
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2188#FFFFFF#000000##FFFFFF
##3A21881.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#163D53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a2188;
/* rgb */ color: rgb(58, 33, 136);
/* oklch */ color: oklch(35.3% 0.159 286.1);
Tailwind
colors: {
  custom: {
    50: '#7a5fac',
    500: '#3a2188',
    950: '#000000',
  },
}
SCSS
$custom: #3a2188;
$custom-light: #7a5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2188",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 254.563,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35255,
    "c": 0.15936,
    "h": 286.1
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#3A2188
secondary
#9EB84D
accent
#E444BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2188

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

Preview Lab → · Contrast checker → · Palette generator →

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