#3A1776#3A1776

#3A1776 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.148 H 292.8°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#3A1776
RGBrgb(58, 23, 118)
HSLhsl(262, 67%, 28%)
HSVhsv(262, 81%, 46%)
CMYKcmyk(50.8%, 80.5%, 0%, 53.7%)
CIE-LABlab(19.31, 39.07, -47.66)
CIE-LCHlch(19.31, 61.63, 309.35°)
OKLaboklab(32.21% 0.0574 -0.1368)
OKLCHoklch(32.21% 0.148 292.8)
XYZxyz(5.3204, 2.8202, 17.4000)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1776 #537617
analogous
#172476 #3A1776 #691776
triadic
#3A1776 #763A17 #17763A
tetradic
#3A1776 #761724 #537617 #177669
square
#3A1776 #761724 #537617 #177669
split-complementary
#3A1776 #766917 #247617
monochromatic
#0D051A #210D43 #3A1776 #5321A9 #6E31D7

Accessibility & contrast

On white

13.43
#3A1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3A1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1776
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1776#FFFFFF#000000##FFFFFF
##3A17761.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#273246
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1776;
/* rgb */ color: rgb(58, 23, 118);
/* oklch */ color: oklch(32.2% 0.148 292.8);
Tailwind
colors: {
  custom: {
    50: '#77599e',
    500: '#3a1776',
    950: '#000000',
  },
}
SCSS
$custom: #3a1776;
$custom-light: #77599e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1776",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 262.105,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3221,
    "c": 0.14836,
    "h": 292.8
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#3A1776
secondary
#83AB3E
accent
#EA3EAB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1776

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

Preview Lab → · Contrast checker → · Palette generator →

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