#3A1E98#3A1E98

#3A1E98 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.182 H 283.3°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#3A1E98
RGBrgb(58, 30, 152)
HSLhsl(254, 67%, 36%)
HSVhsv(254, 80%, 60%)
CMYKcmyk(61.8%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.98, 45.64, -61.32)
CIE-LCHlch(23.98, 76.44, 306.66°)
OKLaboklab(36.52% 0.0417 -0.1768)
OKLCHoklch(36.52% 0.182 283.3)
XYZxyz(7.8749, 4.0945, 30.0750)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E98 #7C981E
analogous
#1E3F98 #3A1E98 #771E98
triadic
#3A1E98 #983A1E #1E983A
tetradic
#3A1E98 #981E3F #7C981E #1E9877
square
#3A1E98 #981E3F #7C981E #1E9877
split-complementary
#3A1E98 #98771E #3F981E
monochromatic
#130A32 #261465 #3A1E98 #4E28CB #7353DD

Accessibility & contrast

On white

11.54
#3A1E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A1E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E98
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E98#FFFFFF#000000##FFFFFF
##3A1E981.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1e98;
/* rgb */ color: rgb(58, 30, 152);
/* oklch */ color: oklch(36.5% 0.182 283.3);
Tailwind
colors: {
  custom: {
    50: '#7d5eb8',
    500: '#3a1e98',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e98;
$custom-light: #7d5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e98",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 253.77,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36522,
    "c": 0.18164,
    "h": 283.3
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#3A1E98
secondary
#A7C051
accent
#EA3EC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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