#3A1F94#3A1F94

#3A1F94 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.176 H 283.9°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#3A1F94
RGBrgb(58, 31, 148)
HSLhsl(254, 65%, 35%)
HSVhsv(254, 79%, 58%)
CMYKcmyk(60.8%, 79.1%, 0%, 42%)
CIE-LABlab(23.73, 43.96, -59.27)
CIE-LCHlch(23.73, 73.80, 306.57°)
OKLaboklab(36.22% 0.0423 -0.1708)
OKLCHoklch(36.22% 0.176 283.9)
XYZxyz(7.5786, 4.0171, 28.3873)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F94 #79941F
analogous
#1F3F94 #3A1F94 #741F94
triadic
#3A1F94 #943A1F #1F943A
tetradic
#3A1F94 #941F3F #79941F #1F9474
square
#3A1F94 #941F3F #79941F #1F9474
split-complementary
#3A1F94 #94741F #3F941F
monochromatic
#120A2F #261461 #3A1F94 #4E2AC7 #7253DB

Accessibility & contrast

On white

11.64
#3A1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3A1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F94
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F94#FFFFFF#000000##FFFFFF
##3A1F941.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a1f94;
/* rgb */ color: rgb(58, 31, 148);
/* oklch */ color: oklch(36.2% 0.176 283.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fb5',
    500: '#3a1f94',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f94;
$custom-light: #7c5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f94",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 253.846,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36219,
    "c": 0.17599,
    "h": 283.9
  },
  "luminance": 0.04018
}

Semantic roles & 50–950 ramp

primary
#3A1F94
secondary
#A5BE51
accent
#E83FC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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