#3A2162#3A2162

#3A2162 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.8% C 0.110 H 297.5°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#3A2162
RGBrgb(58, 33, 98)
HSLhsl(263, 50%, 26%)
HSVhsv(263, 66%, 38%)
CMYKcmyk(40.8%, 66.3%, 0%, 61.6%)
CIE-LABlab(19.51, 27.72, -34.32)
CIE-LCHlch(19.51, 44.11, 308.93°)
OKLaboklab(31.8% 0.0508 -0.0977)
OKLCHoklch(31.8% 0.11 297.5)
XYZxyz(4.4928, 2.8690, 11.8700)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2162 #496221
analogous
#212862 #3A2162 #5A2162
triadic
#3A2162 #623A21 #21623A
tetradic
#3A2162 #622128 #496221 #21625A
square
#3A2162 #622128 #496221 #21625A
split-complementary
#3A2162 #625A21 #286221
monochromatic
#0E0817 #1F1234 #3A2162 #553090 #7040BE

Accessibility & contrast

On white

13.34
#3A2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2162
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2162#FFFFFF#000000##FFFFFF
##3A21621.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#032E61
Tritanopia (blue-blind)
#302F3E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a2162;
/* rgb */ color: rgb(58, 33, 98);
/* oklch */ color: oklch(31.8% 0.110 297.5);
Tailwind
colors: {
  custom: {
    50: '#745e8f',
    500: '#3a2162',
    950: '#000000',
  },
}
SCSS
$custom: #3a2162;
$custom-light: #745e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2162",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 263.077,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31804,
    "c": 0.11007,
    "h": 297.5
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#3A2162
secondary
#789649
accent
#D94FA4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #3A2162

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

Preview Lab → · Contrast checker → · Palette generator →

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