#3C1790#3C1790

#3C1790 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.178 H 286.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#3C1790
RGBrgb(60, 23, 144)
HSLhsl(258, 72%, 33%)
HSVhsv(258, 84%, 56%)
CMYKcmyk(58.3%, 84%, 0%, 43.5%)
CIE-LABlab(22.26, 46.69, -59.22)
CIE-LCHlch(22.26, 75.41, 308.26°)
OKLaboklab(35.12% 0.0518 -0.1705)
OKLCHoklch(35.12% 0.178 286.9)
XYZxyz(7.2024, 3.5867, 26.6929)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1790 #6B9017
analogous
#172F90 #3C1790 #781790
triadic
#3C1790 #903C17 #17903C
tetradic
#3C1790 #90172F #6B9017 #179078
square
#3C1790 #90172F #6B9017 #179078
split-complementary
#3C1790 #907817 #2F9017
monochromatic
#100626 #260F5B #3C1790 #521FC5 #7241E1

Accessibility & contrast

On white

12.23
#3C1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3C1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1790
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1790#FFFFFF#000000##FFFFFF
##3C17901.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#123C55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c1790;
/* rgb */ color: rgb(60, 23, 144);
/* oklch */ color: oklch(35.1% 0.178 286.9);
Tailwind
colors: {
  custom: {
    50: '#7d5bb2',
    500: '#3c1790',
    950: '#000000',
  },
}
SCSS
$custom: #3c1790;
$custom-light: #7d5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1790",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 258.347,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35121,
    "c": 0.17821,
    "h": 286.9
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#3C1790
secondary
#9AC142
accent
#EF39B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C1790

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

Preview Lab → · Contrast checker → · Palette generator →

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