#3C23A2#3C23A2

#3C23A2 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.189 H 281.8°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#3C23A2
RGBrgb(60, 35, 162)
HSLhsl(252, 64%, 39%)
HSVhsv(252, 78%, 64%)
CMYKcmyk(63%, 78.4%, 0%, 36.5%)
CIE-LABlab(26.07, 46.42, -63.97)
CIE-LCHlch(26.07, 79.04, 305.97°)
OKLaboklab(38.34% 0.0387 -0.1845)
OKLCHoklch(38.34% 0.189 281.8)
XYZxyz(8.9841, 4.7707, 34.6228)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C23A2 #89A223
analogous
#2349A2 #3C23A2 #7B23A2
triadic
#3C23A2 #A23C23 #23A23C
tetradic
#3C23A2 #A22349 #89A223 #23A27B
square
#3C23A2 #A22349 #89A223 #23A27B
split-complementary
#3C23A2 #A27B23 #49A223
monochromatic
#170D3D #291870 #3C23A2 #5030D2 #7A62DD

Accessibility & contrast

On white

10.75
#3C23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3C23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C23A2
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C23A2#FFFFFF#000000##FFFFFF
##3C23A21.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3c23a2;
/* rgb */ color: rgb(60, 35, 162);
/* oklch */ color: oklch(38.3% 0.189 281.8);
Tailwind
colors: {
  custom: {
    50: '#7f62bf',
    500: '#3c23a2',
    950: '#000000',
  },
}
SCSS
$custom: #3c23a2;
$custom-light: #7f62bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3c23a2",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 251.811,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38339,
    "c": 0.18856,
    "h": 281.8
  },
  "luminance": 0.04771
}

Semantic roles & 50–950 ramp

primary
#3C23A2
secondary
#AFC25E
accent
#E740C7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3C23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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