#3C2398#3C2398

#3C2398 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.177 H 283.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3C2398
RGBrgb(60, 35, 152)
HSLhsl(253, 63%, 37%)
HSVhsv(253, 77%, 60%)
CMYKcmyk(60.5%, 77%, 0%, 40.4%)
CIE-LABlab(25.04, 43.40, -59.56)
CIE-LCHlch(25.04, 73.70, 306.08°)
OKLaboklab(37.31% 0.0415 -0.1717)
OKLCHoklch(37.31% 0.177 283.6)
XYZxyz(8.1303, 4.4292, 30.1262)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2398 #7F9823
analogous
#234498 #3C2398 #772398
triadic
#3C2398 #983C23 #23983C
tetradic
#3C2398 #982344 #7F9823 #239877
square
#3C2398 #982344 #7F9823 #239877
split-complementary
#3C2398 #987723 #449823
monochromatic
#150C35 #281866 #3C2398 #502ECA #775CD9

Accessibility & contrast

On white

11.13
#3C2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3C2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2398
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2398#FFFFFF#000000##FFFFFF
##3C23981.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3c2398;
/* rgb */ color: rgb(60, 35, 152);
/* oklch */ color: oklch(37.3% 0.177 283.6);
Tailwind
colors: {
  custom: {
    50: '#7d61b7',
    500: '#3c2398',
    950: '#000000',
  },
}
SCSS
$custom: #3c2398;
$custom-light: #7d61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2398",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 252.821,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3731,
    "c": 0.1766,
    "h": 283.6
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#3C2398
secondary
#A8BE59
accent
#E642C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C2398

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

Preview Lab → · Contrast checker → · Palette generator →

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