#3C237D#3C237D

#3C237D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.143 H 289.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#3C237D
RGBrgb(60, 35, 125)
HSLhsl(257, 56%, 31%)
HSVhsv(257, 72%, 49%)
CMYKcmyk(52%, 72%, 0%, 51%)
CIE-LABlab(22.45, 35.14, -46.96)
CIE-LCHlch(22.45, 58.66, 306.81°)
OKLaboklab(34.69% 0.0478 -0.1348)
OKLCHoklch(34.69% 0.143 289.5)
XYZxyz(6.1651, 3.6431, 19.7764)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C237D #647D23
analogous
#23377D #3C237D #69237D
triadic
#3C237D #7D3C23 #237D3C
tetradic
#3C237D #7D2337 #647D23 #237D69
square
#3C237D #7D2337 #647D23 #237D69
split-complementary
#3C237D #7D6923 #377D23
monochromatic
#0E081D #25164D #3C237D #5330AD #714DCD

Accessibility & contrast

On white

12.15
#3C237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C237D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C237D#FFFFFF#000000##FFFFFF
##3C237D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#253A4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c237d;
/* rgb */ color: rgb(60, 35, 125);
/* oklch */ color: oklch(34.7% 0.143 289.5);
Tailwind
colors: {
  custom: {
    50: '#7960a3',
    500: '#3c237d',
    950: '#000000',
  },
}
SCSS
$custom: #3c237d;
$custom-light: #7960a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c237d",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 256.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34689,
    "c": 0.143,
    "h": 289.5
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#3C237D
secondary
#94AF4C
accent
#E048B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3C237D

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

Preview Lab → · Contrast checker → · Palette generator →

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