#3C1870#3C1870

#3C1870 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.140 H 296.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#3C1870
RGBrgb(60, 24, 112)
HSLhsl(265, 65%, 27%)
HSVhsv(265, 79%, 44%)
CMYKcmyk(46.4%, 78.6%, 0%, 56.1%)
CIE-LABlab(19.16, 37.23, -44.03)
CIE-LCHlch(19.16, 57.65, 310.22°)
OKLaboklab(31.98% 0.0616 -0.1261)
OKLCHoklch(31.98% 0.14 296)
XYZxyz(5.1140, 2.7837, 15.5940)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1870 #4C7018
analogous
#182070 #3C1870 #681870
triadic
#3C1870 #703C18 #18703C
tetradic
#3C1870 #701820 #4C7018 #187068
square
#3C1870 #701820 #4C7018 #187068
split-complementary
#3C1870 #706818 #207018
monochromatic
#0D0519 #210D3E #3C1870 #5723A2 #7230D3

Accessibility & contrast

On white

13.49
#3C1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1870
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1870#FFFFFF#000000##FFFFFF
##3C18701.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#2E2F43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3c1870;
/* rgb */ color: rgb(60, 24, 112);
/* oklch */ color: oklch(32.0% 0.140 296.0);
Tailwind
colors: {
  custom: {
    50: '#78599a',
    500: '#3c1870',
    950: '#000000',
  },
}
SCSS
$custom: #3c1870;
$custom-light: #78599a;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1870",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 264.545,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31983,
    "c": 0.14031,
    "h": 296
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#3C1870
secondary
#7BA53E
accent
#E840A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3C1870

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

Preview Lab → · Contrast checker → · Palette generator →

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