#3A1565#3A1565

#3A1565 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.131 H 299.4°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#3A1565
RGBrgb(58, 21, 101)
HSLhsl(268, 66%, 24%)
HSVhsv(268, 79%, 40%)
CMYKcmyk(42.6%, 79.2%, 0%, 60.4%)
CIE-LABlab(17.35, 35.28, -39.81)
CIE-LCHlch(17.35, 53.19, 311.55°)
OKLaboklab(30.33% 0.0642 -0.1138)
OKLCHoklch(30.33% 0.131 299.4)
XYZxyz(4.3615, 2.3754, 12.5381)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1565 #406515
analogous
#151865 #3A1565 #621565
triadic
#3A1565 #653A15 #15653A
tetradic
#3A1565 #651518 #406515 #156562
square
#3A1565 #651518 #406515 #156562
split-complementary
#3A1565 #656215 #186515
monochromatic
#0F0519 #1D0A32 #3A1565 #572098 #742ACA

Accessibility & contrast

On white

14.24
#3A1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1565
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1565#FFFFFF#000000##FFFFFF
##3A15651.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#302A3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1565;
/* rgb */ color: rgb(58, 21, 101);
/* oklch */ color: oklch(30.3% 0.131 299.4);
Tailwind
colors: {
  custom: {
    50: '#755792',
    500: '#3a1565',
    950: '#000000',
  },
}
SCSS
$custom: #3a1565;
$custom-light: #755792;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1565",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 267.75,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30334,
    "c": 0.13062,
    "h": 299.4
  },
  "luminance": 0.02375
}

Semantic roles & 50–950 ramp

primary
#3A1565
secondary
#6F9C3A
accent
#E93F9A
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1565

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

Preview Lab → · Contrast checker → · Palette generator →

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