#3C1D98#3C1D98

#3C1D98 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.182 H 284.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#3C1D98
RGBrgb(60, 29, 152)
HSLhsl(255, 68%, 35%)
HSVhsv(255, 81%, 60%)
CMYKcmyk(60.5%, 80.9%, 0%, 40.4%)
CIE-LABlab(24.02, 46.34, -61.25)
CIE-LCHlch(24.02, 76.81, 307.11°)
OKLaboklab(36.6% 0.0454 -0.1765)
OKLCHoklch(36.6% 0.182 284.4)
XYZxyz(7.9686, 4.1059, 30.0723)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1D98 #79981D
analogous
#1D3B98 #3C1D98 #791D98
triadic
#3C1D98 #983C1D #1D983C
tetradic
#3C1D98 #981D3B #79981D #1D9879
square
#3C1D98 #981D3B #79981D #1D9879
split-complementary
#3C1D98 #98791D #3B981D
monochromatic
#130931 #281365 #3C1D98 #5027CB #7552DE

Accessibility & contrast

On white

11.53
#3C1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3C1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1D98
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1D98#FFFFFF#000000##FFFFFF
##3C1D981.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c1d98;
/* rgb */ color: rgb(60, 29, 152);
/* oklch */ color: oklch(36.6% 0.182 284.4);
Tailwind
colors: {
  custom: {
    50: '#7e5eb8',
    500: '#3c1d98',
    950: '#000000',
  },
}
SCSS
$custom: #3c1d98;
$custom-light: #7e5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1d98",
  "rgb": {
    "r": 60,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 255.122,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36596,
    "c": 0.18227,
    "h": 284.4
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#3C1D98
secondary
#A4C150
accent
#EB3DBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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