#3A1877#3A1877

#3A1877 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.148 H 292.3°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#3A1877
RGBrgb(58, 24, 119)
HSLhsl(261, 66%, 28%)
HSVhsv(261, 80%, 47%)
CMYKcmyk(51.3%, 79.8%, 0%, 53.3%)
CIE-LABlab(19.58, 38.88, -47.86)
CIE-LCHlch(19.58, 61.66, 309.09°)
OKLaboklab(32.43% 0.0563 -0.1374)
OKLCHoklch(32.43% 0.148 292.3)
XYZxyz(5.4004, 2.8845, 17.7214)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1877 #557718
analogous
#182577 #3A1877 #691877
triadic
#3A1877 #773A18 #18773A
tetradic
#3A1877 #771825 #557718 #187769
square
#3A1877 #771825 #557718 #187769
split-complementary
#3A1877 #776918 #257718
monochromatic
#0C0519 #210E44 #3A1877 #5322AA #6E33D6

Accessibility & contrast

On white

13.32
#3A1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3A1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1877
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1877#FFFFFF#000000##FFFFFF
##3A18771.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#263247
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1877;
/* rgb */ color: rgb(58, 24, 119);
/* oklch */ color: oklch(32.4% 0.148 292.3);
Tailwind
colors: {
  custom: {
    50: '#77599f',
    500: '#3a1877',
    950: '#000000',
  },
}
SCSS
$custom: #3a1877;
$custom-light: #77599f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1877",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 261.474,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32426,
    "c": 0.14848,
    "h": 292.3
  },
  "luminance": 0.02885
}

Semantic roles & 50–950 ramp

primary
#3A1877
secondary
#85AC3F
accent
#E93EAC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3A1877

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

Preview Lab → · Contrast checker → · Palette generator →

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