#3A105C#3A105C

#3A105C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.126 H 304.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#3A105C
RGBrgb(58, 16, 92)
HSLhsl(273, 70%, 21%)
HSVhsv(273, 83%, 36%)
CMYKcmyk(37%, 82.6%, 0%, 63.9%)
CIE-LABlab(15.71, 35.20, -36.50)
CIE-LCHlch(15.71, 50.71, 313.97°)
OKLaboklab(28.93% 0.0715 -0.104)
OKLCHoklch(28.93% 0.126 304.5)
XYZxyz(3.8615, 2.0428, 10.3140)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A105C #325C10
analogous
#14105C #3A105C #5C1058
triadic
#3A105C #5C3A10 #105C3A
tetradic
#3A105C #5C1410 #325C10 #10585C
square
#3A105C #5C1410 #325C10 #10585C
split-complementary
#3A105C #585C10 #105C14
monochromatic
#10051A #190728 #3A105C #5B1990 #7C22C4

Accessibility & contrast

On white

14.91
#3A105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A105C
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A105C#FFFFFF#000000##FFFFFF
##3A105C1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#332436
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a105c;
/* rgb */ color: rgb(58, 16, 92);
/* oklch */ color: oklch(28.9% 0.126 304.5);
Tailwind
colors: {
  custom: {
    50: '#74548b',
    500: '#3a105c',
    950: '#000000',
  },
}
SCSS
$custom: #3a105c;
$custom-light: #74548b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a105c",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 273.158,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28931,
    "c": 0.1262,
    "h": 304.5
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#3A105C
secondary
#5F9533
accent
#ED3B8B
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A105C

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

Preview Lab → · Contrast checker → · Palette generator →

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