#3A1665#3A1665

#3A1665 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.129 H 299.2°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#3A1665
RGBrgb(58, 22, 101)
HSLhsl(267, 64%, 24%)
HSVhsv(267, 78%, 40%)
CMYKcmyk(42.6%, 78.2%, 0%, 60.4%)
CIE-LABlab(17.52, 34.78, -39.52)
CIE-LCHlch(17.52, 52.65, 311.35°)
OKLaboklab(30.46% 0.0632 -0.1129)
OKLCHoklch(30.46% 0.129 299.2)
XYZxyz(4.3802, 2.4129, 12.5444)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1665 #416516
analogous
#161965 #3A1665 #621665
triadic
#3A1665 #653A16 #16653A
tetradic
#3A1665 #651619 #416516 #166562
square
#3A1665 #651619 #416516 #166562
split-complementary
#3A1665 #656216 #196516
monochromatic
#0E0519 #1D0B33 #3A1665 #572197 #742CCA

Accessibility & contrast

On white

14.16
#3A1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1665
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1665#FFFFFF#000000##FFFFFF
##3A16651.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.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: #3a1665;
/* rgb */ color: rgb(58, 22, 101);
/* oklch */ color: oklch(30.5% 0.129 299.2);
Tailwind
colors: {
  custom: {
    50: '#755792',
    500: '#3a1665',
    950: '#000000',
  },
}
SCSS
$custom: #3a1665;
$custom-light: #755792;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1665",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 267.342,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30457,
    "c": 0.1294,
    "h": 299.2
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#3A1665
secondary
#709C3B
accent
#E7419B
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1665

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

Preview Lab → · Contrast checker → · Palette generator →

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