#3A1F9C#3A1F9C

#3A1F9C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.185 H 282.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#3A1F9C
RGBrgb(58, 31, 156)
HSLhsl(253, 67%, 37%)
HSVhsv(253, 80%, 61%)
CMYKcmyk(62.8%, 80.1%, 0%, 38.8%)
CIE-LABlab(24.57, 46.35, -62.79)
CIE-LCHlch(24.57, 78.05, 306.43°)
OKLaboklab(37.06% 0.0398 -0.1811)
OKLCHoklch(37.06% 0.185 282.4)
XYZxyz(8.2338, 4.2792, 31.8381)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F9C #819C1F
analogous
#1F439C #3A1F9C #791F9C
triadic
#3A1F9C #9C3A1F #1F9C3A
tetradic
#3A1F9C #9C1F43 #819C1F #1F9C79
square
#3A1F9C #9C1F43 #819C1F #1F9C79
split-complementary
#3A1F9C #9C791F #439C1F
monochromatic
#140B36 #271569 #3A1F9C #4D29CF #7558DE

Accessibility & contrast

On white

11.31
#3A1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F9C
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F9C#FFFFFF#000000##FFFFFF
##3A1F9C1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1f9c;
/* rgb */ color: rgb(58, 31, 156);
/* oklch */ color: oklch(37.1% 0.185 282.4);
Tailwind
colors: {
  custom: {
    50: '#7e5fba',
    500: '#3a1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f9c;
$custom-light: #7e5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f9c",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 252.96,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37061,
    "c": 0.18545,
    "h": 282.4
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#3A1F9C
secondary
#AAC155
accent
#EA3EC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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