#3A105D#3A105D

#3A105D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.127 H 304.0°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#3A105D
RGBrgb(58, 16, 93)
HSLhsl(273, 71%, 21%)
HSVhsv(273, 83%, 36%)
CMYKcmyk(37.6%, 82.8%, 0%, 63.5%)
CIE-LABlab(15.80, 35.46, -37.02)
CIE-LCHlch(15.80, 51.26, 313.77°)
OKLaboklab(29.02% 0.0712 -0.1055)
OKLCHoklch(29.02% 0.127 304)
XYZxyz(3.9055, 2.0604, 10.5458)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A105D #335D10
analogous
#14105D #3A105D #5D105A
triadic
#3A105D #5D3A10 #105D3A
tetradic
#3A105D #5D1410 #335D10 #105A5D
square
#3A105D #5D1410 #335D10 #105A5D
split-complementary
#3A105D #5A5D10 #105D14
monochromatic
#10041A #190729 #3A105D #5B1991 #7B22C5

Accessibility & contrast

On white

14.87
#3A105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A105D
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A105D#FFFFFF#000000##FFFFFF
##3A105D1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a105d;
/* rgb */ color: rgb(58, 16, 93);
/* oklch */ color: oklch(29.0% 0.127 304.0);
Tailwind
colors: {
  custom: {
    50: '#74548c',
    500: '#3a105d',
    950: '#000000',
  },
}
SCSS
$custom: #3a105d;
$custom-light: #74548c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a105d",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 272.727,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29023,
    "c": 0.12731,
    "h": 304
  },
  "luminance": 0.0206
}

Semantic roles & 50–950 ramp

primary
#3A105D
secondary
#609633
accent
#ED3A8C
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A105D

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

Preview Lab → · Contrast checker → · Palette generator →

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