#3A1977#3A1977

#3A1977 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.147 H 292.1°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#3A1977
RGBrgb(58, 25, 119)
HSLhsl(261, 65%, 28%)
HSVhsv(261, 79%, 47%)
CMYKcmyk(51.3%, 79%, 0%, 53.3%)
CIE-LABlab(19.75, 38.39, -47.58)
CIE-LCHlch(19.75, 61.13, 308.90°)
OKLaboklab(32.55% 0.0554 -0.1366)
OKLCHoklch(32.55% 0.147 292.1)
XYZxyz(5.4214, 2.9265, 17.7284)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1977 #567719
analogous
#192777 #3A1977 #691977
triadic
#3A1977 #773A19 #19773A
tetradic
#3A1977 #771927 #567719 #197769
square
#3A1977 #771927 #567719 #197769
split-complementary
#3A1977 #776919 #277719
monochromatic
#0C0519 #210E44 #3A1977 #5324AA #6E36D5

Accessibility & contrast

On white

13.25
#3A1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1977
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1977#FFFFFF#000000##FFFFFF
##3A19771.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#263347
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a1977;
/* rgb */ color: rgb(58, 25, 119);
/* oklch */ color: oklch(32.5% 0.147 292.1);
Tailwind
colors: {
  custom: {
    50: '#775a9f',
    500: '#3a1977',
    950: '#000000',
  },
}
SCSS
$custom: #3a1977;
$custom-light: #775a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1977",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 261.064,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32546,
    "c": 0.14741,
    "h": 292.1
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#3A1977
secondary
#86AC40
accent
#E840AD
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #3A1977

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

Preview Lab → · Contrast checker → · Palette generator →

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