#3A1683#3A1683

#3A1683 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.164 H 289.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#3A1683
RGBrgb(58, 22, 131)
HSLhsl(260, 71%, 30%)
HSVhsv(260, 83%, 51%)
CMYKcmyk(55.7%, 83.2%, 0%, 48.6%)
CIE-LABlab(20.49, 43.22, -54.00)
CIE-LCHlch(20.49, 69.16, 308.67°)
OKLaboklab(33.43% 0.0538 -0.1553)
OKLCHoklch(33.43% 0.164 289.1)
XYZxyz(6.1274, 3.1118, 21.7461)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1683 #5F8316
analogous
#162883 #3A1683 #711683
triadic
#3A1683 #833A16 #16833A
tetradic
#3A1683 #831628 #5F8316 #168371
square
#3A1683 #831628 #5F8316 #168371
split-complementary
#3A1683 #837116 #288316
monochromatic
#0C041A #230D4F #3A1683 #511FB7 #6D36DD

Accessibility & contrast

On white

12.94
#3A1683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A1683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1683
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1683#FFFFFF#000000##FFFFFF
##3A16831.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#1C374D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a1683;
/* rgb */ color: rgb(58, 22, 131);
/* oklch */ color: oklch(33.4% 0.164 289.1);
Tailwind
colors: {
  custom: {
    50: '#7a59a8',
    500: '#3a1683',
    950: '#000000',
  },
}
SCSS
$custom: #3a1683;
$custom-light: #7a59a8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1683",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 259.817,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.33431,
    "c": 0.16441,
    "h": 289.1
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#3A1683
secondary
#8FB73D
accent
#EE3AB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1683

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

Preview Lab → · Contrast checker → · Palette generator →

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