#3A1867#3A1867

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

Color values

HEX#3A1867
RGBrgb(58, 24, 103)
HSLhsl(266, 62%, 25%)
HSVhsv(266, 77%, 40%)
CMYKcmyk(43.7%, 76.7%, 0%, 59.6%)
CIE-LABlab(18.06, 34.32, -39.95)
CIE-LCHlch(18.06, 52.67, 310.66°)
OKLaboklab(30.9% 0.0606 -0.1142)
OKLCHoklch(30.9% 0.129 298)
XYZxyz(4.5191, 2.5320, 13.0800)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1867 #456718
analogous
#181D67 #3A1867 #621867
triadic
#3A1867 #673A18 #18673A
tetradic
#3A1867 #67181D #456718 #186762
square
#3A1867 #67181D #456718 #186762
split-complementary
#3A1867 #676218 #1D6718
monochromatic
#0E0619 #1E0C35 #3A1867 #562499 #722FCA

Accessibility & contrast

On white

13.94
#3A1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1867
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1867#FFFFFF#000000##FFFFFF
##3A18671.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002B65
Tritanopia (blue-blind)
#2F2C3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1867;
/* rgb */ color: rgb(58, 24, 103);
/* oklch */ color: oklch(30.9% 0.129 298.0);
Tailwind
colors: {
  custom: {
    50: '#755893',
    500: '#3a1867',
    950: '#000000',
  },
}
SCSS
$custom: #3a1867;
$custom-light: #755893;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1867",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 265.823,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30897,
    "c": 0.12931,
    "h": 298
  },
  "luminance": 0.02532
}

Semantic roles & 50–950 ramp

primary
#3A1867
secondary
#749D3E
accent
#E5439F
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1867

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

Preview Lab → · Contrast checker → · Palette generator →

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