#3A176A#3A176A

#3A176A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.134 H 297.0°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#3A176A
RGBrgb(58, 23, 106)
HSLhsl(265, 64%, 25%)
HSVhsv(265, 78%, 42%)
CMYKcmyk(45.3%, 78.3%, 0%, 58.4%)
CIE-LABlab(18.16, 35.68, -41.77)
CIE-LCHlch(18.16, 54.93, 310.50°)
OKLaboklab(31.05% 0.0609 -0.1195)
OKLCHoklch(31.05% 0.134 297)
XYZxyz(4.6522, 2.5528, 13.8805)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A176A #476A17
analogous
#171E6A #3A176A #63176A
triadic
#3A176A #6A3A17 #176A3A
tetradic
#3A176A #6A171E #476A17 #176A63
square
#3A176A #6A171E #476A17 #176A63
split-complementary
#3A176A #6A6317 #1E6A17
monochromatic
#0E0519 #1E0C38 #3A176A #56229C #712DCF

Accessibility & contrast

On white

13.90
#3A176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A176A
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A176A#FFFFFF#000000##FFFFFF
##3A176A1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#2D2D3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a176a;
/* rgb */ color: rgb(58, 23, 106);
/* oklch */ color: oklch(31.0% 0.134 297.0);
Tailwind
colors: {
  custom: {
    50: '#765895',
    500: '#3a176a',
    950: '#000000',
  },
}
SCSS
$custom: #3a176a;
$custom-light: #765895;
$custom-dark: #000000;
JSON
{
  "hex": "#3a176a",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 265.301,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31047,
    "c": 0.13414,
    "h": 297
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#3A176A
secondary
#76A03D
accent
#E740A1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A176A

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

Preview Lab → · Contrast checker → · Palette generator →

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