#3C237A#3C237A

#3C237A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.139 H 290.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#3C237A
RGBrgb(60, 35, 122)
HSLhsl(257, 55%, 31%)
HSVhsv(257, 71%, 48%)
CMYKcmyk(50.8%, 71.3%, 0%, 52.2%)
CIE-LABlab(22.19, 34.23, -45.49)
CIE-LCHlch(22.19, 56.93, 306.95°)
OKLaboklab(34.42% 0.0484 -0.1304)
OKLCHoklch(34.42% 0.139 290.3)
XYZxyz(5.9764, 3.5676, 18.7823)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C237A #617A23
analogous
#23367A #3C237A #67237A
triadic
#3C237A #7A3C23 #237A3C
tetradic
#3C237A #7A2336 #617A23 #237A67
square
#3C237A #7A2336 #617A23 #237A67
split-complementary
#3C237A #7A6723 #367A23
monochromatic
#0D081B #25154A #3C237A #5331AA #714CCC

Accessibility & contrast

On white

12.25
#3C237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3C237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C237A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C237A#FFFFFF#000000##FFFFFF
##3C237A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#27394B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c237a;
/* rgb */ color: rgb(60, 35, 122);
/* oklch */ color: oklch(34.4% 0.139 290.3);
Tailwind
colors: {
  custom: {
    50: '#7860a1',
    500: '#3c237a',
    950: '#000000',
  },
}
SCSS
$custom: #3c237a;
$custom-light: #7860a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c237a",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 257.241,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.13913,
    "h": 290.3
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#3C237A
secondary
#91AD4C
accent
#DF49B4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3C237A

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

Preview Lab → · Contrast checker → · Palette generator →

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