#3A1773#3A1773

#3A1773 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.145 H 293.8°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#3A1773
RGBrgb(58, 23, 115)
HSLhsl(263, 67%, 27%)
HSVhsv(263, 80%, 45%)
CMYKcmyk(49.6%, 80%, 0%, 54.9%)
CIE-LABlab(19.01, 38.22, -46.21)
CIE-LCHlch(19.01, 59.97, 309.60°)
OKLaboklab(31.91% 0.0584 -0.1325)
OKLCHoklch(31.91% 0.145 293.8)
XYZxyz(5.1450, 2.7500, 16.4760)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1773 #507317
analogous
#172273 #3A1773 #681773
triadic
#3A1773 #733A17 #17733A
tetradic
#3A1773 #731722 #507317 #177368
square
#3A1773 #731722 #507317 #177368
split-complementary
#3A1773 #736817 #227317
monochromatic
#0D051A #200D40 #3A1773 #5421A6 #6E2FD5

Accessibility & contrast

On white

13.55
#3A1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3A1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1773
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1773#FFFFFF#000000##FFFFFF
##3A17731.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#293044
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1773;
/* rgb */ color: rgb(58, 23, 115);
/* oklch */ color: oklch(31.9% 0.145 293.8);
Tailwind
colors: {
  custom: {
    50: '#77589c',
    500: '#3a1773',
    950: '#000000',
  },
}
SCSS
$custom: #3a1773;
$custom-light: #77589c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1773",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 262.826,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31913,
    "c": 0.14483,
    "h": 293.8
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#3A1773
secondary
#80A93D
accent
#EA3EA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1773

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

Preview Lab → · Contrast checker → · Palette generator →

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