#3A1966#3A1966

#3A1966 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.127 H 298.1°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#3A1966
RGBrgb(58, 25, 102)
HSLhsl(266, 61%, 25%)
HSVhsv(266, 75%, 40%)
CMYKcmyk(43.1%, 75.5%, 0%, 60%)
CIE-LABlab(18.16, 33.50, -39.14)
CIE-LCHlch(18.16, 51.52, 310.57°)
OKLaboklab(30.94% 0.0598 -0.1118)
OKLCHoklch(30.94% 0.127 298.1)
XYZxyz(4.4902, 2.5540, 12.8242)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1966 #456619
analogous
#191F66 #3A1966 #601966
triadic
#3A1966 #663A19 #19663A
tetradic
#3A1966 #66191F #456619 #196660
square
#3A1966 #66191F #456619 #196660
split-complementary
#3A1966 #666019 #1F6619
monochromatic
#0E0619 #1E0D35 #3A1966 #562597 #7231C8

Accessibility & contrast

On white

13.90
#3A1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1966
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1966#FFFFFF#000000##FFFFFF
##3A19661.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#2F2C3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1966;
/* rgb */ color: rgb(58, 25, 102);
/* oklch */ color: oklch(30.9% 0.127 298.1);
Tailwind
colors: {
  custom: {
    50: '#755992',
    500: '#3a1966',
    950: '#000000',
  },
}
SCSS
$custom: #3a1966;
$custom-light: #755992;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1966",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 265.714,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30939,
    "c": 0.12679,
    "h": 298.1
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#3A1966
secondary
#749C3F
accent
#E4449F
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3A1966

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

Preview Lab → · Contrast checker → · Palette generator →

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