#3A1167#3A1167

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

Color values

HEX#3A1167
RGBrgb(58, 17, 103)
HSLhsl(269, 72%, 24%)
HSVhsv(269, 83%, 40%)
CMYKcmyk(43.7%, 83.5%, 0%, 59.6%)
CIE-LABlab(16.89, 37.66, -41.87)
CIE-LCHlch(16.89, 56.31, 311.97°)
OKLaboklab(30.07% 0.0673 -0.1198)
OKLCHoklch(30.07% 0.137 299.3)
XYZxyz(4.3929, 2.2797, 13.0379)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1167 #3E6711
analogous
#111367 #3A1167 #651167
triadic
#3A1167 #673A11 #11673A
tetradic
#3A1167 #671113 #3E6711 #116765
square
#3A1167 #671113 #3E6711 #116765
split-complementary
#3A1167 #676511 #136711
monochromatic
#0F041A #1C0832 #3A1167 #581A9C #7522D0

Accessibility & contrast

On white

14.42
#3A1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1167
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1167#FFFFFF#000000##FFFFFF
##3A11671.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#2F293C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1167;
/* rgb */ color: rgb(58, 17, 103);
/* oklch */ color: oklch(30.1% 0.137 299.3);
Tailwind
colors: {
  custom: {
    50: '#765593',
    500: '#3a1167',
    950: '#000000',
  },
}
SCSS
$custom: #3a1167;
$custom-light: #765593;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1167",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 268.605,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30074,
    "c": 0.13738,
    "h": 299.3
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#3A1167
secondary
#6C9F35
accent
#EE3998
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1167

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

Preview Lab → · Contrast checker → · Palette generator →

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