#3A1895#3A1895

#3A1895 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.183 H 284.6°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#3A1895
RGBrgb(58, 24, 149)
HSLhsl(256, 72%, 34%)
HSVhsv(256, 84%, 58%)
CMYKcmyk(61.1%, 83.9%, 0%, 41.6%)
CIE-LABlab(22.73, 47.46, -61.53)
CIE-LCHlch(22.73, 77.71, 307.65°)
OKLaboklab(35.56% 0.0461 -0.1774)
OKLCHoklch(35.56% 0.183 284.6)
XYZxyz(7.4947, 3.7222, 28.7515)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1895 #739518
analogous
#183595 #3A1895 #791895
triadic
#3A1895 #953A18 #18953A
tetradic
#3A1895 #951835 #739518 #189579
square
#3A1895 #951835 #739518 #189579
split-complementary
#3A1895 #957918 #359518
monochromatic
#11072C #251060 #3A1895 #4F20CA #7046E1

Accessibility & contrast

On white

12.04
#3A1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1895
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1895#FFFFFF#000000##FFFFFF
##3A18951.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1895;
/* rgb */ color: rgb(58, 24, 149);
/* oklch */ color: oklch(35.6% 0.183 284.6);
Tailwind
colors: {
  custom: {
    50: '#7d5bb5',
    500: '#3a1895',
    950: '#000000',
  },
}
SCSS
$custom: #3a1895;
$custom-light: #7d5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1895",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 256.32,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3556,
    "c": 0.18326,
    "h": 284.6
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#3A1895
secondary
#A1C246
accent
#EF39BD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1895

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

Preview Lab → · Contrast checker → · Palette generator →

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