#3A2160#3A2160

#3A2160 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.6% C 0.107 H 298.3°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#3A2160
RGBrgb(58, 33, 96)
HSLhsl(264, 49%, 25%)
HSVhsv(264, 66%, 38%)
CMYKcmyk(39.6%, 65.6%, 0%, 62.4%)
CIE-LABlab(19.36, 27.13, -33.25)
CIE-LCHlch(19.36, 42.91, 309.21°)
OKLaboklab(31.64% 0.0509 -0.0945)
OKLCHoklch(31.64% 0.107 298.3)
XYZxyz(4.3996, 2.8317, 11.3788)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2160 #476021
analogous
#212760 #3A2160 #592160
triadic
#3A2160 #603A21 #21603A
tetradic
#3A2160 #602127 #476021 #216059
square
#3A2160 #602127 #476021 #216059
split-complementary
#3A2160 #605921 #276021
monochromatic
#0E0817 #1E1132 #3A2160 #56318E #7140BB

Accessibility & contrast

On white

13.41
#3A2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2160
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2160#FFFFFF#000000##FFFFFF
##3A21601.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F62
Deuteranopia (green-blind)
#062E5F
Tritanopia (blue-blind)
#312F3D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a2160;
/* rgb */ color: rgb(58, 33, 96);
/* oklch */ color: oklch(31.6% 0.107 298.3);
Tailwind
colors: {
  custom: {
    50: '#735e8e',
    500: '#3a2160',
    950: '#000000',
  },
}
SCSS
$custom: #3a2160;
$custom-light: #735e8e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2160",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 263.81,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31642,
    "c": 0.10736,
    "h": 298.3
  },
  "luminance": 0.02832
}

Semantic roles & 50–950 ramp

primary
#3A2160
secondary
#769449
accent
#D84FA2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #3A2160

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

Preview Lab → · Contrast checker → · Palette generator →

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