#3A1874#3A1874

#3A1874 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.145 H 293.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#3A1874
RGBrgb(58, 24, 116)
HSLhsl(262, 66%, 27%)
HSVhsv(262, 79%, 45%)
CMYKcmyk(50%, 79.3%, 0%, 54.5%)
CIE-LABlab(19.28, 38.02, -46.41)
CIE-LCHlch(19.28, 60.00, 309.32°)
OKLaboklab(32.13% 0.0572 -0.1332)
OKLCHoklch(32.13% 0.145 293.2)
XYZxyz(5.2231, 2.8136, 16.7875)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1874 #527418
analogous
#182474 #3A1874 #681874
triadic
#3A1874 #743A18 #18743A
tetradic
#3A1874 #741824 #527418 #187468
square
#3A1874 #741824 #527418 #187468
split-complementary
#3A1874 #746818 #247418
monochromatic
#0D0519 #210E41 #3A1874 #5322A7 #6E32D5

Accessibility & contrast

On white

13.44
#3A1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3A1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1874
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1874#FFFFFF#000000##FFFFFF
##3A18741.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#283145
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1874;
/* rgb */ color: rgb(58, 24, 116);
/* oklch */ color: oklch(32.1% 0.145 293.2);
Tailwind
colors: {
  custom: {
    50: '#77599d',
    500: '#3a1874',
    950: '#000000',
  },
}
SCSS
$custom: #3a1874;
$custom-light: #77599d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1874",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 262.174,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3213,
    "c": 0.14492,
    "h": 293.2
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#3A1874
secondary
#82A93F
accent
#E93FAA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1874

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

Preview Lab → · Contrast checker → · Palette generator →

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