#3B1874#3B1874

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

Color values

HEX#3B1874
RGBrgb(59, 24, 116)
HSLhsl(263, 66%, 27%)
HSVhsv(263, 79%, 45%)
CMYKcmyk(49.1%, 79.3%, 0%, 54.5%)
CIE-LABlab(19.41, 38.18, -46.20)
CIE-LCHlch(19.41, 59.94, 309.57°)
OKLaboklab(32.25% 0.0588 -0.1325)
OKLCHoklch(32.25% 0.145 293.9)
XYZxyz(5.2818, 2.8439, 16.7902)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1874 #517418
analogous
#182374 #3B1874 #691874
triadic
#3B1874 #743B18 #18743B
tetradic
#3B1874 #741823 #517418 #187469
square
#3B1874 #741823 #517418 #187469
split-complementary
#3B1874 #746918 #237418
monochromatic
#0D0519 #210E41 #3B1874 #5522A7 #7032D5

Accessibility & contrast

On white

13.39
#3B1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B1874
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1874#FFFFFF#000000##FFFFFF
##3B18741.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b1874;
/* rgb */ color: rgb(59, 24, 116);
/* oklch */ color: oklch(32.2% 0.145 293.9);
Tailwind
colors: {
  custom: {
    50: '#78599d',
    500: '#3b1874',
    950: '#000000',
  },
}
SCSS
$custom: #3b1874;
$custom-light: #78599d;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1874",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 262.826,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32247,
    "c": 0.14498,
    "h": 293.9
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#3B1874
secondary
#81A93F
accent
#E93FA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B1874

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

Preview Lab → · Contrast checker → · Palette generator →

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