#3A1F98#3A1F98

#3A1F98 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.181 H 283.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3A1F98
RGBrgb(58, 31, 152)
HSLhsl(253, 66%, 36%)
HSVhsv(253, 80%, 60%)
CMYKcmyk(61.8%, 79.6%, 0%, 40.4%)
CIE-LABlab(24.15, 45.16, -61.04)
CIE-LCHlch(24.15, 75.93, 306.49°)
OKLaboklab(36.64% 0.0411 -0.176)
OKLCHoklch(36.64% 0.181 283.1)
XYZxyz(7.9006, 4.1460, 30.0836)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F98 #7D981F
analogous
#1F4198 #3A1F98 #761F98
triadic
#3A1F98 #983A1F #1F983A
tetradic
#3A1F98 #981F41 #7D981F #1F9876
square
#3A1F98 #981F41 #7D981F #1F9876
split-complementary
#3A1F98 #98761F #41981F
monochromatic
#130A32 #271565 #3A1F98 #4D29CB #7355DC

Accessibility & contrast

On white

11.48
#3A1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F98
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F98#FFFFFF#000000##FFFFFF
##3A1F981.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1f98;
/* rgb */ color: rgb(58, 31, 152);
/* oklch */ color: oklch(36.6% 0.181 283.1);
Tailwind
colors: {
  custom: {
    50: '#7d5fb8',
    500: '#3a1f98',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f98;
$custom-light: #7d5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f98",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 253.388,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36638,
    "c": 0.18073,
    "h": 283.1
  },
  "luminance": 0.04147
}

Semantic roles & 50–950 ramp

primary
#3A1F98
secondary
#A8C053
accent
#E93FC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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