#3A1767#3A1767

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

Color values

HEX#3A1767
RGBrgb(58, 23, 103)
HSLhsl(266, 63%, 25%)
HSVhsv(266, 78%, 40%)
CMYKcmyk(43.7%, 77.7%, 0%, 59.6%)
CIE-LABlab(17.88, 34.83, -40.25)
CIE-LCHlch(17.88, 53.23, 310.87°)
OKLaboklab(30.77% 0.0617 -0.1151)
OKLCHoklch(30.77% 0.131 298.2)
XYZxyz(4.4989, 2.4915, 13.0732)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1767 #446717
analogous
#171C67 #3A1767 #621767
triadic
#3A1767 #673A17 #17673A
tetradic
#3A1767 #67171C #446717 #176762
square
#3A1767 #67171C #446717 #176762
split-complementary
#3A1767 #676217 #1C6717
monochromatic
#0E0619 #1E0C35 #3A1767 #562299 #722DCB

Accessibility & contrast

On white

14.01
#3A1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1767
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1767#FFFFFF#000000##FFFFFF
##3A17671.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1767;
/* rgb */ color: rgb(58, 23, 103);
/* oklch */ color: oklch(30.8% 0.131 298.2);
Tailwind
colors: {
  custom: {
    50: '#755893',
    500: '#3a1767',
    950: '#000000',
  },
}
SCSS
$custom: #3a1767;
$custom-light: #755893;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1767",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 266.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30768,
    "c": 0.13055,
    "h": 298.2
  },
  "luminance": 0.02492
}

Semantic roles & 50–950 ramp

primary
#3A1767
secondary
#739D3D
accent
#E7419E
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1767

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

Preview Lab → · Contrast checker → · Palette generator →

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