#3A1B60#3A1B60

#3A1B60 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.7% C 0.117 H 300.2°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#3A1B60
RGBrgb(58, 27, 96)
HSLhsl(267, 56%, 24%)
HSVhsv(267, 72%, 38%)
CMYKcmyk(39.6%, 71.9%, 0%, 62.4%)
CIE-LABlab(18.04, 30.69, -35.37)
CIE-LCHlch(18.04, 46.83, 310.95°)
OKLaboklab(30.69% 0.0586 -0.1007)
OKLCHoklch(30.69% 0.117 300.2)
XYZxyz(4.2477, 2.5279, 11.3282)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B60 #41601B
analogous
#1B1E60 #3A1B60 #5D1B60
triadic
#3A1B60 #603A1B #1B603A
tetradic
#3A1B60 #601B1E #41601B #1B605D
square
#3A1B60 #601B1E #41601B #1B605D
split-complementary
#3A1B60 #605D1B #1E601B
monochromatic
#0E0718 #1D0E30 #3A1B60 #572890 #7436C0

Accessibility & contrast

On white

13.95
#3A1B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A1B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B60
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B60#FFFFFF#000000##FFFFFF
##3A1B601.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#002C5F
Tritanopia (blue-blind)
#322B3B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1b60;
/* rgb */ color: rgb(58, 27, 96);
/* oklch */ color: oklch(30.7% 0.117 300.2);
Tailwind
colors: {
  custom: {
    50: '#745a8e',
    500: '#3a1b60',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b60;
$custom-light: #745a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b60",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 266.957,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30694,
    "c": 0.11653,
    "h": 300.2
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#3A1B60
secondary
#709641
accent
#DF489C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #3A1B60

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

Preview Lab → · Contrast checker → · Palette generator →

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