#3A1165#3A1165

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

Color values

HEX#3A1165
RGBrgb(58, 17, 101)
HSLhsl(269, 71%, 23%)
HSVhsv(269, 83%, 40%)
CMYKcmyk(42.6%, 83.2%, 0%, 60.4%)
CIE-LABlab(16.70, 37.13, -40.86)
CIE-LCHlch(16.70, 55.21, 312.26°)
OKLaboklab(29.88% 0.0679 -0.1168)
OKLCHoklch(29.88% 0.135 300.2)
XYZxyz(4.2937, 2.2400, 12.5155)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1165 #3C6511
analogous
#111265 #3A1165 #641165
triadic
#3A1165 #653A11 #11653A
tetradic
#3A1165 #651112 #3C6511 #116564
square
#3A1165 #651112 #3C6511 #116564
split-complementary
#3A1165 #656411 #126511
monochromatic
#0F041A #1C0831 #3A1165 #581A99 #7623CE

Accessibility & contrast

On white

14.50
#3A1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1165
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1165#FFFFFF#000000##FFFFFF
##3A11651.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#30283B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1165;
/* rgb */ color: rgb(58, 17, 101);
/* oklch */ color: oklch(29.9% 0.135 300.2);
Tailwind
colors: {
  custom: {
    50: '#755592',
    500: '#3a1165',
    950: '#000000',
  },
}
SCSS
$custom: #3a1165;
$custom-light: #755592;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1165",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 269.286,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29881,
    "c": 0.13515,
    "h": 300.2
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#3A1165
secondary
#6A9D35
accent
#EE3A96
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1165

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

Preview Lab → · Contrast checker → · Palette generator →

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