#3A1668#3A1668

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

Color values

HEX#3A1668
RGBrgb(58, 22, 104)
HSLhsl(266, 65%, 25%)
HSVhsv(266, 79%, 41%)
CMYKcmyk(44.2%, 78.8%, 0%, 59.2%)
CIE-LABlab(17.80, 35.61, -41.05)
CIE-LCHlch(17.80, 54.34, 310.94°)
OKLaboklab(30.74% 0.0624 -0.1174)
OKLCHoklch(30.74% 0.133 298)
XYZxyz(4.5299, 2.4728, 13.3326)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1668 #446816
analogous
#161B68 #3A1668 #631668
triadic
#3A1668 #683A16 #16683A
tetradic
#3A1668 #68161B #446816 #166863
square
#3A1668 #68161B #446816 #166863
split-complementary
#3A1668 #686316 #1B6816
monochromatic
#0E0519 #1E0B35 #3A1668 #56219B #722BCD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A1668#FFFFFF#000000##FFFFFF
##3A16681.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)
#002C6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#2E2B3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1668;
/* rgb */ color: rgb(58, 22, 104);
/* oklch */ color: oklch(30.7% 0.133 298.0);
Tailwind
colors: {
  custom: {
    50: '#755794',
    500: '#3a1668',
    950: '#000000',
  },
}
SCSS
$custom: #3a1668;
$custom-light: #755794;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1668",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 266.341,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30736,
    "c": 0.13296,
    "h": 298
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#3A1668
secondary
#739F3B
accent
#E8409E
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1668

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

Preview Lab → · Contrast checker → · Palette generator →

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