#3A176C#3A176C

#3A176C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.137 H 296.2°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#3A176C
RGBrgb(58, 23, 108)
HSLhsl(265, 65%, 26%)
HSVhsv(265, 79%, 42%)
CMYKcmyk(46.3%, 78.7%, 0%, 57.6%)
CIE-LABlab(18.34, 36.24, -42.77)
CIE-LCHlch(18.34, 56.06, 310.28°)
OKLaboklab(31.24% 0.0604 -0.1225)
OKLCHoklch(31.24% 0.137 296.2)
XYZxyz(4.7574, 2.5949, 14.4347)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A176C #496C17
analogous
#171E6C #3A176C #64176C
triadic
#3A176C #6C3A17 #176C3A
tetradic
#3A176C #6C171E #496C17 #176C64
square
#3A176C #6C171E #496C17 #176C64
split-complementary
#3A176C #6C6417 #1E6C17
monochromatic
#0E0519 #1F0C3A #3A176C #55229E #702CD1

Accessibility & contrast

On white

13.82
#3A176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3A176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A176C
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A176C#FFFFFF#000000##FFFFFF
##3A176C1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#2C2E40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a176c;
/* rgb */ color: rgb(58, 23, 108);
/* oklch */ color: oklch(31.2% 0.137 296.2);
Tailwind
colors: {
  custom: {
    50: '#765897',
    500: '#3a176c',
    950: '#000000',
  },
}
SCSS
$custom: #3a176c;
$custom-light: #765897;
$custom-dark: #000000;
JSON
{
  "hex": "#3a176c",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 264.706,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31236,
    "c": 0.13653,
    "h": 296.2
  },
  "luminance": 0.02595
}

Semantic roles & 50–950 ramp

primary
#3A176C
secondary
#78A23D
accent
#E840A3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A176C

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

Preview Lab → · Contrast checker → · Palette generator →

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