#3A1876#3A1876

#3A1876 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.147 H 292.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#3A1876
RGBrgb(58, 24, 118)
HSLhsl(262, 66%, 28%)
HSVhsv(262, 80%, 46%)
CMYKcmyk(50.8%, 79.7%, 0%, 53.7%)
CIE-LABlab(19.48, 38.59, -47.38)
CIE-LCHlch(19.48, 61.11, 309.16°)
OKLaboklab(32.33% 0.0566 -0.136)
OKLCHoklch(32.33% 0.147 292.6)
XYZxyz(5.3407, 2.8606, 17.4068)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1876 #547618
analogous
#182576 #3A1876 #691876
triadic
#3A1876 #763A18 #18763A
tetradic
#3A1876 #761825 #547618 #187669
square
#3A1876 #761825 #547618 #187669
split-complementary
#3A1876 #766918 #257618
monochromatic
#0C0519 #210E43 #3A1876 #5322A9 #6E33D5

Accessibility & contrast

On white

13.36
#3A1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1876
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1876#FFFFFF#000000##FFFFFF
##3A18761.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#273246
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1876;
/* rgb */ color: rgb(58, 24, 118);
/* oklch */ color: oklch(32.3% 0.147 292.6);
Tailwind
colors: {
  custom: {
    50: '#77599e',
    500: '#3a1876',
    950: '#000000',
  },
}
SCSS
$custom: #3a1876;
$custom-light: #77599e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1876",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 261.702,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32327,
    "c": 0.14731,
    "h": 292.6
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#3A1876
secondary
#84AB3F
accent
#E93FAB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1876

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

Preview Lab → · Contrast checker → · Palette generator →

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