#3A2187#3A2187

#3A2187 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.158 H 286.3°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3A2187
RGBrgb(58, 33, 135)
HSLhsl(255, 61%, 33%)
HSVhsv(255, 76%, 53%)
CMYKcmyk(57%, 75.6%, 0%, 47.1%)
CIE-LABlab(22.78, 38.99, -52.74)
CIE-LCHlch(22.78, 65.59, 306.47°)
OKLaboklab(35.16% 0.0443 -0.1518)
OKLCHoklch(35.16% 0.158 286.3)
XYZxyz(6.6606, 3.7362, 23.2872)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2187 #6E8721
analogous
#213B87 #3A2187 #6D2187
triadic
#3A2187 #873A21 #21873A
tetradic
#3A2187 #87213B #6E8721 #21876D
square
#3A2187 #87213B #6E8721 #21876D
split-complementary
#3A2187 #876D21 #3B8721
monochromatic
#100925 #251556 #3A2187 #4F2DB8 #6F4FD4

Accessibility & contrast

On white

12.02
#3A2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2187
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2187#FFFFFF#000000##FFFFFF
##3A21871.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#173D52
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2187;
/* rgb */ color: rgb(58, 33, 135);
/* oklch */ color: oklch(35.2% 0.158 286.3);
Tailwind
colors: {
  custom: {
    50: '#795fab',
    500: '#3a2187',
    950: '#000000',
  },
}
SCSS
$custom: #3a2187;
$custom-light: #795fab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2187",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 254.706,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35157,
    "c": 0.15812,
    "h": 286.3
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A2187

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

Preview Lab → · Contrast checker → · Palette generator →

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