#3A1563#3A1563

#3A1563 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.128 H 300.3°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#3A1563
RGBrgb(58, 21, 99)
HSLhsl(268, 65%, 24%)
HSVhsv(268, 79%, 39%)
CMYKcmyk(41.4%, 78.8%, 0%, 61.2%)
CIE-LABlab(17.16, 34.73, -38.79)
CIE-LCHlch(17.16, 52.06, 311.84°)
OKLaboklab(30.15% 0.0647 -0.1107)
OKLCHoklch(30.15% 0.128 300.3)
XYZxyz(4.2647, 2.3367, 12.0283)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1563 #3E6315
analogous
#151763 #3A1563 #611563
triadic
#3A1563 #633A15 #15633A
tetradic
#3A1563 #631517 #3E6315 #156361
square
#3A1563 #631517 #3E6315 #156361
split-complementary
#3A1563 #636115 #176315
monochromatic
#0F0519 #1C0A31 #3A1563 #582095 #752AC8

Accessibility & contrast

On white

14.31
#3A1563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3A1563 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1563
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1563#FFFFFF#000000##FFFFFF
##3A15631.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#31293B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1563;
/* rgb */ color: rgb(58, 21, 99);
/* oklch */ color: oklch(30.1% 0.128 300.3);
Tailwind
colors: {
  custom: {
    50: '#755690',
    500: '#3a1563',
    950: '#000000',
  },
}
SCSS
$custom: #3a1563;
$custom-light: #755690;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1563",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 268.462,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30149,
    "c": 0.12826,
    "h": 300.3
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#3A1563
secondary
#6C9A3A
accent
#E84098
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #3A1563

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

Preview Lab → · Contrast checker → · Palette generator →

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