#3A1C83#3A1C83

#3A1C83 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.159 H 288.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#3A1C83
RGBrgb(58, 28, 131)
HSLhsl(257, 65%, 31%)
HSVhsv(257, 79%, 51%)
CMYKcmyk(55.7%, 78.6%, 0%, 48.6%)
CIE-LABlab(21.46, 40.40, -52.39)
CIE-LCHlch(21.46, 66.16, 307.63°)
OKLaboklab(34.11% 0.0495 -0.1507)
OKLCHoklch(34.11% 0.159 288.2)
XYZxyz(6.2557, 3.3684, 21.7889)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C83 #65831C
analogous
#1C3183 #3A1C83 #6D1C83
triadic
#3A1C83 #833A1C #1C833A
tetradic
#3A1C83 #831C31 #65831C #1C836D
square
#3A1C83 #831C31 #65831C #1C836D
split-complementary
#3A1C83 #836D1C #31831C
monochromatic
#0D061E #241151 #3A1C83 #5027B5 #6E43D7

Accessibility & contrast

On white

12.55
#3A1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A1C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1C83
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C83#FFFFFF#000000##FFFFFF
##3A1C831.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#1C394F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1c83;
/* rgb */ color: rgb(58, 28, 131);
/* oklch */ color: oklch(34.1% 0.159 288.2);
Tailwind
colors: {
  custom: {
    50: '#795ca8',
    500: '#3a1c83',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c83;
$custom-light: #795ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c83",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 257.476,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34111,
    "c": 0.15862,
    "h": 288.2
  },
  "luminance": 0.03369
}

Semantic roles & 50–950 ramp

primary
#3A1C83
secondary
#95B645
accent
#E840B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1C83

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

Preview Lab → · Contrast checker → · Palette generator →

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