#3C1E98#3C1E98

#3C1E98 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.181 H 284.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#3C1E98
RGBrgb(60, 30, 152)
HSLhsl(255, 67%, 36%)
HSVhsv(255, 80%, 60%)
CMYKcmyk(60.5%, 80.3%, 0%, 40.4%)
CIE-LABlab(24.18, 45.88, -60.98)
CIE-LCHlch(24.18, 76.31, 306.95°)
OKLaboklab(36.71% 0.0448 -0.1758)
OKLCHoklch(36.71% 0.181 284.3)
XYZxyz(7.9935, 4.1557, 30.0806)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1E98 #7A981E
analogous
#1E3D98 #3C1E98 #791E98
triadic
#3C1E98 #983C1E #1E983C
tetradic
#3C1E98 #981E3D #7A981E #1E9879
square
#3C1E98 #981E3D #7A981E #1E9879
split-complementary
#3C1E98 #98791E #3D981E
monochromatic
#140A32 #281465 #3C1E98 #5028CB #7553DD

Accessibility & contrast

On white

11.47
#3C1E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3C1E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1E98
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1E98#FFFFFF#000000##FFFFFF
##3C1E981.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3c1e98;
/* rgb */ color: rgb(60, 30, 152);
/* oklch */ color: oklch(36.7% 0.181 284.3);
Tailwind
colors: {
  custom: {
    50: '#7e5fb8',
    500: '#3c1e98',
    950: '#000000',
  },
}
SCSS
$custom: #3c1e98;
$custom-light: #7e5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1e98",
  "rgb": {
    "r": 60,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 254.754,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36708,
    "c": 0.18138,
    "h": 284.3
  },
  "luminance": 0.04156
}

Semantic roles & 50–950 ramp

primary
#3C1E98
secondary
#A5C051
accent
#EA3EC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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