#3C237F#3C237F

#3C237F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.146 H 289.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#3C237F
RGBrgb(60, 35, 127)
HSLhsl(256, 57%, 32%)
HSVhsv(256, 72%, 50%)
CMYKcmyk(52.8%, 72.4%, 0%, 50.2%)
CIE-LABlab(22.64, 35.76, -47.93)
CIE-LCHlch(22.64, 59.80, 306.72°)
OKLaboklab(34.87% 0.0474 -0.1376)
OKLCHoklch(34.87% 0.146 289)
XYZxyz(6.2942, 3.6947, 20.4561)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C237F #667F23
analogous
#23387F #3C237F #6A237F
triadic
#3C237F #7F3C23 #237F3C
tetradic
#3C237F #7F2338 #667F23 #237F6A
square
#3C237F #7F2338 #667F23 #237F6A
split-complementary
#3C237F #7F6A23 #387F23
monochromatic
#0F091F #25164F #3C237F #5330AF #714ECE

Accessibility & contrast

On white

12.08
#3C237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3C237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C237F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C237F#FFFFFF#000000##FFFFFF
##3C237F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#243B4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c237f;
/* rgb */ color: rgb(60, 35, 127);
/* oklch */ color: oklch(34.9% 0.146 289.0);
Tailwind
colors: {
  custom: {
    50: '#7960a5',
    500: '#3c237f',
    950: '#000000',
  },
}
SCSS
$custom: #3c237f;
$custom-light: #7960a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3c237f",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 256.304,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34874,
    "c": 0.14556,
    "h": 289
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#3C237F
secondary
#96B14C
accent
#E048B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3C237F

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

Preview Lab → · Contrast checker → · Palette generator →

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