#3C1872#3C1872

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

Color values

HEX#3C1872
RGBrgb(60, 24, 114)
HSLhsl(264, 65%, 27%)
HSVhsv(264, 79%, 45%)
CMYKcmyk(47.4%, 78.9%, 0%, 55.3%)
CIE-LABlab(19.34, 37.79, -45.01)
CIE-LCHlch(19.34, 58.77, 310.02°)
OKLaboklab(32.17% 0.061 -0.129)
OKLCHoklch(32.17% 0.143 295.3)
XYZxyz(5.2266, 2.8287, 16.1869)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1872 #4E7218
analogous
#182172 #3C1872 #691872
triadic
#3C1872 #723C18 #18723C
tetradic
#3C1872 #721821 #4E7218 #187269
square
#3C1872 #721821 #4E7218 #187269
split-complementary
#3C1872 #726918 #217218
monochromatic
#0D0519 #210D3F #3C1872 #5723A5 #7231D4

Accessibility & contrast

On white

13.41
#3C1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1872
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1872#FFFFFF#000000##FFFFFF
##3C18721.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#2D3044
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3c1872;
/* rgb */ color: rgb(60, 24, 114);
/* oklch */ color: oklch(32.2% 0.143 295.3);
Tailwind
colors: {
  custom: {
    50: '#78599b',
    500: '#3c1872',
    950: '#000000',
  },
}
SCSS
$custom: #3c1872;
$custom-light: #78599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1872",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 264,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32173,
    "c": 0.14267,
    "h": 295.3
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#3C1872
secondary
#7DA73E
accent
#E840A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3C1872

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

Preview Lab → · Contrast checker → · Palette generator →

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