#3A1566#3A1566

#3A1566 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.132 H 299.0°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#3A1566
RGBrgb(58, 21, 102)
HSLhsl(267, 66%, 24%)
HSVhsv(267, 79%, 40%)
CMYKcmyk(43.1%, 79.4%, 0%, 60%)
CIE-LABlab(17.44, 35.55, -40.32)
CIE-LCHlch(17.44, 53.75, 311.41°)
OKLaboklab(30.43% 0.0639 -0.1152)
OKLCHoklch(30.43% 0.132 299)
XYZxyz(4.4108, 2.3951, 12.7977)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1566 #416615
analogous
#151966 #3A1566 #631566
triadic
#3A1566 #663A15 #15663A
tetradic
#3A1566 #661519 #416615 #156663
square
#3A1566 #661519 #416615 #156663
split-complementary
#3A1566 #666315 #196615
monochromatic
#0E0519 #1D0B33 #3A1566 #571F99 #742ACC

Accessibility & contrast

On white

14.20
#3A1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3A1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1566
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1566#FFFFFF#000000##FFFFFF
##3A15661.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#2F2A3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1566;
/* rgb */ color: rgb(58, 21, 102);
/* oklch */ color: oklch(30.4% 0.132 299.0);
Tailwind
colors: {
  custom: {
    50: '#755792',
    500: '#3a1566',
    950: '#000000',
  },
}
SCSS
$custom: #3a1566;
$custom-light: #755792;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1566",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 267.407,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30427,
    "c": 0.13179,
    "h": 299
  },
  "luminance": 0.02395
}

Semantic roles & 50–950 ramp

primary
#3A1566
secondary
#709D3A
accent
#E93F9B
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1566

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

Preview Lab → · Contrast checker → · Palette generator →

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