#3A1A63#3A1A63

#3A1A63 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.122 H 299.1°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#3A1A63
RGBrgb(58, 26, 99)
HSLhsl(266, 58%, 25%)
HSVhsv(266, 74%, 39%)
CMYKcmyk(41.4%, 73.7%, 0%, 61.2%)
CIE-LABlab(18.09, 32.11, -37.27)
CIE-LCHlch(18.09, 49.19, 310.74°)
OKLaboklab(30.81% 0.0593 -0.1063)
OKLCHoklch(30.81% 0.122 299.1)
XYZxyz(4.3659, 2.5391, 12.0620)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A63 #43631A
analogous
#1A1F63 #3A1A63 #5F1A63
triadic
#3A1A63 #633A1A #1A633A
tetradic
#3A1A63 #631A1F #43631A #1A635F
square
#3A1A63 #631A1F #43631A #1A635F
split-complementary
#3A1A63 #635F1A #1F631A
monochromatic
#0E0618 #1E0D33 #3A1A63 #562793 #7333C4

Accessibility & contrast

On white

13.93
#3A1A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1A63
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A63#FFFFFF#000000##FFFFFF
##3A1A631.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#302C3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1a63;
/* rgb */ color: rgb(58, 26, 99);
/* oklch */ color: oklch(30.8% 0.122 299.1);
Tailwind
colors: {
  custom: {
    50: '#745990',
    500: '#3a1a63',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a63;
$custom-light: #745990;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a63",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 266.301,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.3081,
    "c": 0.12173,
    "h": 299.1
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#3A1A63
secondary
#729940
accent
#E2469D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #3A1A63

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

Preview Lab → · Contrast checker → · Palette generator →

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