#3C23A3#3C23A3

#3C23A3 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.190 H 281.7°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#3C23A3
RGBrgb(60, 35, 163)
HSLhsl(252, 65%, 39%)
HSVhsv(252, 79%, 64%)
CMYKcmyk(63.2%, 78.5%, 0%, 36.1%)
CIE-LABlab(26.18, 46.72, -64.41)
CIE-LCHlch(26.18, 79.57, 305.96°)
OKLaboklab(38.44% 0.0384 -0.1858)
OKLCHoklch(38.44% 0.19 281.7)
XYZxyz(9.0733, 4.8064, 35.0928)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C23A3 #8AA323
analogous
#234AA3 #3C23A3 #7C23A3
triadic
#3C23A3 #A33C23 #23A33C
tetradic
#3C23A3 #A3234A #8AA323 #23A37C
square
#3C23A3 #A3234A #8AA323 #23A37C
split-complementary
#3C23A3 #A37C23 #4AA323
monochromatic
#170D3E #291871 #3C23A3 #5031D3 #7B63DD

Accessibility & contrast

On white

10.71
#3C23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3C23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C23A3
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C23A3#FFFFFF#000000##FFFFFF
##3C23A31.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0039A1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3c23a3;
/* rgb */ color: rgb(60, 35, 163);
/* oklch */ color: oklch(38.4% 0.190 281.7);
Tailwind
colors: {
  custom: {
    50: '#8062bf',
    500: '#3c23a3',
    950: '#000000',
  },
}
SCSS
$custom: #3c23a3;
$custom-light: #8062bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3c23a3",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 251.719,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.18975,
    "h": 281.7
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#3C23A3
secondary
#AFC35F
accent
#E840C7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3C23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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