#3A1F83#3A1F83

#3A1F83 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.155 H 287.6°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#3A1F83
RGBrgb(58, 31, 131)
HSLhsl(256, 62%, 32%)
HSVhsv(256, 76%, 51%)
CMYKcmyk(55.7%, 76.3%, 0%, 48.6%)
CIE-LABlab(22.01, 38.84, -51.49)
CIE-LCHlch(22.01, 64.50, 307.03°)
OKLaboklab(34.49% 0.047 -0.1481)
OKLCHoklch(34.49% 0.155 287.6)
XYZxyz(6.3304, 3.5179, 21.8138)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F83 #68831F
analogous
#1F3683 #3A1F83 #6C1F83
triadic
#3A1F83 #833A1F #1F833A
tetradic
#3A1F83 #831F36 #68831F #1F836C
square
#3A1F83 #831F36 #68831F #1F836C
split-complementary
#3A1F83 #836C1F #36831F
monochromatic
#0E0820 #241352 #3A1F83 #502BB4 #6E49D4

Accessibility & contrast

On white

12.33
#3A1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F83
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F83#FFFFFF#000000##FFFFFF
##3A1F831.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#1C3A4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a1f83;
/* rgb */ color: rgb(58, 31, 131);
/* oklch */ color: oklch(34.5% 0.155 287.6);
Tailwind
colors: {
  custom: {
    50: '#795ea8',
    500: '#3a1f83',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f83;
$custom-light: #795ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f83",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 256.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34494,
    "c": 0.15539,
    "h": 287.6
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#3A1F83
secondary
#98B648
accent
#E543B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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