#3C237E#3C237E

#3C237E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.144 H 289.3°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#3C237E
RGBrgb(60, 35, 126)
HSLhsl(256, 57%, 32%)
HSVhsv(256, 72%, 49%)
CMYKcmyk(52.4%, 72.2%, 0%, 50.6%)
CIE-LABlab(22.54, 35.45, -47.45)
CIE-LCHlch(22.54, 59.23, 306.76°)
OKLaboklab(34.78% 0.0476 -0.1362)
OKLCHoklch(34.78% 0.144 289.3)
XYZxyz(6.2293, 3.6688, 20.1145)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C237E #657E23
analogous
#23377E #3C237E #6A237E
triadic
#3C237E #7E3C23 #237E3C
tetradic
#3C237E #7E2337 #657E23 #237E6A
square
#3C237E #7E2337 #657E23 #237E6A
split-complementary
#3C237E #7E6A23 #377E23
monochromatic
#0E081E #25164E #3C237E #5330AE #714ECE

Accessibility & contrast

On white

12.11
#3C237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3C237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C237E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C237E#FFFFFF#000000##FFFFFF
##3C237E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#253A4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c237e;
/* rgb */ color: rgb(60, 35, 126);
/* oklch */ color: oklch(34.8% 0.144 289.3);
Tailwind
colors: {
  custom: {
    50: '#7960a4',
    500: '#3c237e',
    950: '#000000',
  },
}
SCSS
$custom: #3c237e;
$custom-light: #7960a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c237e",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 256.484,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34782,
    "c": 0.14428,
    "h": 289.3
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#3C237E
secondary
#95B04C
accent
#E048B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3C237E

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

Preview Lab → · Contrast checker → · Palette generator →

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