#3A105E#3A105E

#3A105E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.128 H 303.5°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#3A105E
RGBrgb(58, 16, 94)
HSLhsl(272, 71%, 22%)
HSVhsv(272, 83%, 37%)
CMYKcmyk(38.3%, 83%, 0%, 63.1%)
CIE-LABlab(15.89, 35.72, -37.54)
CIE-LCHlch(15.89, 51.82, 313.58°)
OKLaboklab(29.12% 0.071 -0.107)
OKLCHoklch(29.12% 0.128 303.5)
XYZxyz(3.9501, 2.0783, 10.7805)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A105E #345E10
analogous
#13105E #3A105E #5E105B
triadic
#3A105E #5E3A10 #105E3A
tetradic
#3A105E #5E1310 #345E10 #105B5E
square
#3A105E #5E1310 #345E10 #105B5E
split-complementary
#3A105E #5B5E10 #105E13
monochromatic
#10041A #1A072A #3A105E #5A1992 #7B22C7

Accessibility & contrast

On white

14.83
#3A105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3A105E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A105E
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A105E#FFFFFF#000000##FFFFFF
##3A105E1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#332437
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a105e;
/* rgb */ color: rgb(58, 16, 94);
/* oklch */ color: oklch(29.1% 0.128 303.5);
Tailwind
colors: {
  custom: {
    50: '#75548c',
    500: '#3a105e',
    950: '#000000',
  },
}
SCSS
$custom: #3a105e;
$custom-light: #75548c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a105e",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 272.308,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29115,
    "c": 0.12842,
    "h": 303.5
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#3A105E
secondary
#619733
accent
#EE3A8D
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A105E

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

Preview Lab → · Contrast checker → · Palette generator →

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