#3A105B#3A105B

#3A105B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.125 H 305.0°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#3A105B
RGBrgb(58, 16, 91)
HSLhsl(274, 70%, 21%)
HSVhsv(274, 82%, 36%)
CMYKcmyk(36.3%, 82.4%, 0%, 64.3%)
CIE-LABlab(15.62, 34.95, -35.97)
CIE-LCHlch(15.62, 50.15, 314.17°)
OKLaboklab(28.84% 0.0718 -0.1024)
OKLCHoklch(28.84% 0.125 305)
XYZxyz(3.8181, 2.0255, 10.0853)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A105B #315B10
analogous
#14105B #3A105B #5B1056
triadic
#3A105B #5B3A10 #105B3A
tetradic
#3A105B #5B1410 #315B10 #10565B
square
#3A105B #5B1410 #315B10 #10565B
split-complementary
#3A105B #565B10 #105B14
monochromatic
#11051A #190727 #3A105B #5B198F #7C22C3

Accessibility & contrast

On white

14.95
#3A105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A105B
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A105B#FFFFFF#000000##FFFFFF
##3A105B1.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a105b;
/* rgb */ color: rgb(58, 16, 91);
/* oklch */ color: oklch(28.8% 0.125 305.0);
Tailwind
colors: {
  custom: {
    50: '#74538a',
    500: '#3a105b',
    950: '#000000',
  },
}
SCSS
$custom: #3a105b;
$custom-light: #74538a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a105b",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 273.6,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28839,
    "c": 0.12509,
    "h": 305
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#3A105B
secondary
#5E9433
accent
#ED3B89
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A105B

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

Preview Lab → · Contrast checker → · Palette generator →

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