#3A168A#3A168A

#3A168A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.172 H 287.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#3A168A
RGBrgb(58, 22, 138)
HSLhsl(259, 73%, 31%)
HSVhsv(259, 84%, 54%)
CMYKcmyk(58%, 84.1%, 0%, 45.9%)
CIE-LABlab(21.24, 45.19, -57.16)
CIE-LCHlch(21.24, 72.87, 308.33°)
OKLaboklab(34.17% 0.0513 -0.1646)
OKLCHoklch(34.17% 0.172 287.3)
XYZxyz(6.6179, 3.3080, 24.3296)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A168A #668A16
analogous
#162C8A #3A168A #74168A
triadic
#3A168A #8A3A16 #168A3A
tetradic
#3A168A #8A162C #668A16 #168A74
square
#3A168A #8A162C #668A16 #168A74
split-complementary
#3A168A #8A7416 #2C8A16
monochromatic
#0E0520 #240E55 #3A168A #501EBF #6E3BE0

Accessibility & contrast

On white

12.64
#3A168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3A168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A168A
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A168A#FFFFFF#000000##FFFFFF
##3A168A1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#143A51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a168a;
/* rgb */ color: rgb(58, 22, 138);
/* oklch */ color: oklch(34.2% 0.172 287.3);
Tailwind
colors: {
  custom: {
    50: '#7b59ad',
    500: '#3a168a',
    950: '#000000',
  },
}
SCSS
$custom: #3a168a;
$custom-light: #7b59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3a168a",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 258.621,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34174,
    "c": 0.17238,
    "h": 287.3
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#3A168A
secondary
#96BE3E
accent
#EF39B7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A168A

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

Preview Lab → · Contrast checker → · Palette generator →

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