#3A1768#3A1768

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

Color values

HEX#3A1768
RGBrgb(58, 23, 104)
HSLhsl(266, 64%, 25%)
HSVhsv(266, 78%, 41%)
CMYKcmyk(44.2%, 77.9%, 0%, 59.2%)
CIE-LABlab(17.97, 35.11, -40.76)
CIE-LCHlch(17.97, 53.80, 310.74°)
OKLaboklab(30.86% 0.0614 -0.1166)
OKLCHoklch(30.86% 0.132 297.8)
XYZxyz(4.5494, 2.5117, 13.3391)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1768 #456817
analogous
#171C68 #3A1768 #631768
triadic
#3A1768 #683A17 #17683A
tetradic
#3A1768 #68171C #456817 #176863
square
#3A1768 #68171C #456817 #176863
split-complementary
#3A1768 #686317 #1C6817
monochromatic
#0E0619 #1E0C36 #3A1768 #56229A #722DCC

Accessibility & contrast

On white

13.98
#3A1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1768
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1768#FFFFFF#000000##FFFFFF
##3A17681.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#2E2C3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1768;
/* rgb */ color: rgb(58, 23, 104);
/* oklch */ color: oklch(30.9% 0.132 297.8);
Tailwind
colors: {
  custom: {
    50: '#755894',
    500: '#3a1768',
    950: '#000000',
  },
}
SCSS
$custom: #3a1768;
$custom-light: #755894;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1768",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 265.926,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3086,
    "c": 0.13175,
    "h": 297.8
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#3A1768
secondary
#749E3D
accent
#E7419F
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1768

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

Preview Lab → · Contrast checker → · Palette generator →

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