#3A1766#3A1766

#3A1766 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.129 H 298.6°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#3A1766
RGBrgb(58, 23, 102)
HSLhsl(267, 63%, 25%)
HSVhsv(267, 77%, 40%)
CMYKcmyk(43.1%, 77.5%, 0%, 60%)
CIE-LABlab(17.79, 34.55, -39.74)
CIE-LCHlch(17.79, 52.66, 311.00°)
OKLaboklab(30.68% 0.0619 -0.1136)
OKLCHoklch(30.68% 0.129 298.6)
XYZxyz(4.4490, 2.4716, 12.8105)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1766 #436617
analogous
#171C66 #3A1766 #621766
triadic
#3A1766 #663A17 #17663A
tetradic
#3A1766 #66171C #436617 #176662
square
#3A1766 #66171C #436617 #176662
split-complementary
#3A1766 #666217 #1C6617
monochromatic
#0E0619 #1E0C34 #3A1766 #562298 #732ECA

Accessibility & contrast

On white

14.05
#3A1766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3A1766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1766
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1766#FFFFFF#000000##FFFFFF
##3A17661.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#2F2B3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1766;
/* rgb */ color: rgb(58, 23, 102);
/* oklch */ color: oklch(30.7% 0.129 298.6);
Tailwind
colors: {
  custom: {
    50: '#755892',
    500: '#3a1766',
    950: '#000000',
  },
}
SCSS
$custom: #3a1766;
$custom-light: #755892;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1766",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 266.582,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30675,
    "c": 0.12936,
    "h": 298.6
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#3A1766
secondary
#729C3C
accent
#E6429D
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1766

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

Preview Lab → · Contrast checker → · Palette generator →

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