#3A1166#3A1166

#3A1166 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.136 H 299.8°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#3A1166
RGBrgb(58, 17, 102)
HSLhsl(269, 71%, 23%)
HSVhsv(269, 83%, 40%)
CMYKcmyk(43.1%, 83.3%, 0%, 60%)
CIE-LABlab(16.80, 37.40, -41.37)
CIE-LCHlch(16.80, 55.76, 312.11°)
OKLaboklab(29.98% 0.0676 -0.1183)
OKLCHoklch(29.98% 0.136 299.8)
XYZxyz(4.3430, 2.2597, 12.7751)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1166 #3D6611
analogous
#111266 #3A1166 #641166
triadic
#3A1166 #663A11 #11663A
tetradic
#3A1166 #661112 #3D6611 #116664
square
#3A1166 #661112 #3D6611 #116664
split-complementary
#3A1166 #666411 #126611
monochromatic
#0F041A #1C0832 #3A1166 #581A9A #7622CF

Accessibility & contrast

On white

14.46
#3A1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1166
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1166#FFFFFF#000000##FFFFFF
##3A11661.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1166;
/* rgb */ color: rgb(58, 17, 102);
/* oklch */ color: oklch(30.0% 0.136 299.8);
Tailwind
colors: {
  custom: {
    50: '#755592',
    500: '#3a1166',
    950: '#000000',
  },
}
SCSS
$custom: #3a1166;
$custom-light: #755592;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1166",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 268.941,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29977,
    "c": 0.13627,
    "h": 299.8
  },
  "luminance": 0.0226
}

Semantic roles & 50–950 ramp

primary
#3A1166
secondary
#6B9E35
accent
#EE3A97
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1166

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

Preview Lab → · Contrast checker → · Palette generator →

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