#3A1066#3A1066

#3A1066 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.137 H 299.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#3A1066
RGBrgb(58, 16, 102)
HSLhsl(269, 73%, 23%)
HSVhsv(269, 84%, 40%)
CMYKcmyk(43.1%, 84.3%, 0%, 60%)
CIE-LABlab(16.65, 37.82, -41.61)
CIE-LCHlch(16.65, 56.23, 312.27°)
OKLaboklab(29.88% 0.0685 -0.119)
OKLCHoklch(29.88% 0.137 299.9)
XYZxyz(4.3279, 2.2294, 12.7701)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1066 #3C6610
analogous
#101166 #3A1066 #651066
triadic
#3A1066 #663A10 #10663A
tetradic
#3A1066 #661011 #3C6610 #106665
square
#3A1066 #661011 #3C6610 #106665
split-complementary
#3A1066 #666510 #116610
monochromatic
#0F041A #1C0831 #3A1066 #58189B #7621D0

Accessibility & contrast

On white

14.52
#3A1066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3A1066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1066
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1066#FFFFFF#000000##FFFFFF
##3A10661.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#2F283B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1066;
/* rgb */ color: rgb(58, 16, 102);
/* oklch */ color: oklch(29.9% 0.137 299.9);
Tailwind
colors: {
  custom: {
    50: '#765492',
    500: '#3a1066',
    950: '#000000',
  },
}
SCSS
$custom: #3a1066;
$custom-light: #765492;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1066",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 269.302,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29875,
    "c": 0.1373,
    "h": 299.9
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#3A1066
secondary
#6A9E33
accent
#F03896
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1066

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

Preview Lab → · Contrast checker → · Palette generator →

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