#3A176F#3A176F

#3A176F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.140 H 295.1°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#3A176F
RGBrgb(58, 23, 111)
HSLhsl(264, 66%, 26%)
HSVhsv(264, 79%, 44%)
CMYKcmyk(47.7%, 79.3%, 0%, 56.5%)
CIE-LABlab(18.63, 37.09, -44.25)
CIE-LCHlch(18.63, 57.74, 309.96°)
OKLaboklab(31.52% 0.0595 -0.1268)
OKLCHoklch(31.52% 0.14 295.1)
XYZxyz(4.9198, 2.6599, 15.2900)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A176F #4C6F17
analogous
#17206F #3A176F #66176F
triadic
#3A176F #6F3A17 #176F3A
tetradic
#3A176F #6F1720 #4C6F17 #176F66
square
#3A176F #6F1720 #4C6F17 #176F66
split-complementary
#3A176F #6F6617 #206F17
monochromatic
#0D0519 #200C3C #3A176F #5422A2 #6F2DD3

Accessibility & contrast

On white

13.71
#3A176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A176F
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A176F#FFFFFF#000000##FFFFFF
##3A176F1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2B2F42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a176f;
/* rgb */ color: rgb(58, 23, 111);
/* oklch */ color: oklch(31.5% 0.140 295.1);
Tailwind
colors: {
  custom: {
    50: '#765899',
    500: '#3a176f',
    950: '#000000',
  },
}
SCSS
$custom: #3a176f;
$custom-light: #765899;
$custom-dark: #000000;
JSON
{
  "hex": "#3a176f",
  "rgb": {
    "r": 58,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 263.864,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31524,
    "c": 0.1401,
    "h": 295.1
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#3A176F
secondary
#7CA53D
accent
#E93FA5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A176F

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

Preview Lab → · Contrast checker → · Palette generator →

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