#3C227D#3C227D

#3C227D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.144 H 289.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#3C227D
RGBrgb(60, 34, 125)
HSLhsl(257, 57%, 31%)
HSVhsv(257, 73%, 49%)
CMYKcmyk(52%, 72.8%, 0%, 51%)
CIE-LABlab(22.25, 35.71, -47.30)
CIE-LCHlch(22.25, 59.27, 307.05°)
OKLaboklab(34.54% 0.0488 -0.1357)
OKLCHoklch(34.54% 0.144 289.8)
XYZxyz(6.1361, 3.5851, 19.7667)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C227D #637D22
analogous
#22357D #3C227D #69227D
triadic
#3C227D #7D3C22 #227D3C
tetradic
#3C227D #7D2235 #637D22 #227D69
square
#3C227D #7D2235 #637D22 #227D69
split-complementary
#3C227D #7D6922 #357D22
monochromatic
#0E081D #25154D #3C227D #532FAD #714BCE

Accessibility & contrast

On white

12.23
#3C227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3C227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C227D
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C227D#FFFFFF#000000##FFFFFF
##3C227D1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c227d;
/* rgb */ color: rgb(60, 34, 125);
/* oklch */ color: oklch(34.5% 0.144 289.8);
Tailwind
colors: {
  custom: {
    50: '#795fa3',
    500: '#3c227d',
    950: '#000000',
  },
}
SCSS
$custom: #3c227d;
$custom-light: #795fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c227d",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 257.143,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34543,
    "c": 0.14426,
    "h": 289.8
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#3C227D
secondary
#93B04B
accent
#E047B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3C227D

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

Preview Lab → · Contrast checker → · Palette generator →

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