#3A176B#3A176B

#3A176B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.135 H 296.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#3A176B
RGBrgb(58, 23, 107)
HSLhsl(265, 65%, 25%)
HSVhsv(265, 79%, 42%)
CMYKcmyk(45.8%, 78.5%, 0%, 58%)
CIE-LABlab(18.25, 35.96, -42.27)
CIE-LCHlch(18.25, 55.49, 310.39°)
OKLaboklab(31.14% 0.0606 -0.121)
OKLCHoklch(31.14% 0.135 296.6)
XYZxyz(4.7045, 2.5738, 14.1560)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A176B #486B17
analogous
#171E6B #3A176B #64176B
triadic
#3A176B #6B3A17 #176B3A
tetradic
#3A176B #6B171E #486B17 #176B64
square
#3A176B #6B171E #486B17 #176B64
split-complementary
#3A176B #6B6417 #1E6B17
monochromatic
#0E0519 #1F0C39 #3A176B #55229D #712DD0

Accessibility & contrast

On white

13.86
#3A176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A176B
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A176B#FFFFFF#000000##FFFFFF
##3A176B1.0013.861.5113.86
#FFFFFF13.861.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#2D2D40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a176b;
/* rgb */ color: rgb(58, 23, 107);
/* oklch */ color: oklch(31.1% 0.135 296.6);
Tailwind
colors: {
  custom: {
    50: '#765896',
    500: '#3a176b',
    950: '#000000',
  },
}
SCSS
$custom: #3a176b;
$custom-light: #765896;
$custom-dark: #000000;
JSON
{
  "hex": "#3a176b",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 265,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31142,
    "c": 0.13534,
    "h": 296.6
  },
  "luminance": 0.02574
}

Semantic roles & 50–950 ramp

primary
#3A176B
secondary
#77A13D
accent
#E840A2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A176B

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

Preview Lab → · Contrast checker → · Palette generator →

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