#3C2097#3C2097

#3C2097 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.178 H 284.2°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#3C2097
RGBrgb(60, 32, 151)
HSLhsl(254, 65%, 36%)
HSVhsv(254, 79%, 59%)
CMYKcmyk(60.3%, 78.8%, 0%, 40.8%)
CIE-LABlab(24.41, 44.62, -59.99)
CIE-LCHlch(24.41, 74.76, 306.64°)
OKLaboklab(36.84% 0.0438 -0.1729)
OKLCHoklch(36.84% 0.178 284.2)
XYZxyz(7.9642, 4.2275, 29.6685)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2097 #7B9720
analogous
#203F97 #3C2097 #772097
triadic
#3C2097 #973C20 #20973C
tetradic
#3C2097 #97203F #7B9720 #209777
square
#3C2097 #97203F #7B9720 #209777
split-complementary
#3C2097 #977720 #3F9720
monochromatic
#140B32 #281564 #3C2097 #502BC9 #7556DB

Accessibility & contrast

On white

11.38
#3C2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3C2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2097
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2097#FFFFFF#000000##FFFFFF
##3C20971.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#01435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3c2097;
/* rgb */ color: rgb(60, 32, 151);
/* oklch */ color: oklch(36.8% 0.178 284.2);
Tailwind
colors: {
  custom: {
    50: '#7d60b7',
    500: '#3c2097',
    950: '#000000',
  },
}
SCSS
$custom: #3c2097;
$custom-light: #7d60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2097",
  "rgb": {
    "r": 60,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 254.118,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36837,
    "c": 0.17835,
    "h": 284.2
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#3C2097
secondary
#A6BF54
accent
#E840C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C2097

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

Preview Lab → · Contrast checker → · Palette generator →

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