#3C23A6#3C23A6

#3C23A6 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.193 H 281.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#3C23A6
RGBrgb(60, 35, 166)
HSLhsl(251, 65%, 39%)
HSVhsv(251, 79%, 65%)
CMYKcmyk(63.9%, 78.9%, 0%, 34.9%)
CIE-LABlab(26.49, 47.62, -65.70)
CIE-LCHlch(26.49, 81.15, 305.93°)
OKLaboklab(38.76% 0.0375 -0.1896)
OKLCHoklch(38.76% 0.193 281.2)
XYZxyz(9.3453, 4.9152, 36.5253)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C23A6 #8DA623
analogous
#234CA6 #3C23A6 #7D23A6
triadic
#3C23A6 #A63C23 #23A63C
tetradic
#3C23A6 #A6234C #8DA623 #23A67D
square
#3C23A6 #A6234C #8DA623 #23A67D
split-complementary
#3C23A6 #A67D23 #4CA623
monochromatic
#170E41 #2A1873 #3C23A6 #5132D4 #7C65DF

Accessibility & contrast

On white

10.59
#3C23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3C23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C23A6
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C23A6#FFFFFF#000000##FFFFFF
##3C23A61.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3c23a6;
/* rgb */ color: rgb(60, 35, 166);
/* oklch */ color: oklch(38.8% 0.193 281.2);
Tailwind
colors: {
  custom: {
    50: '#8062c2',
    500: '#3c23a6',
    950: '#000000',
  },
}
SCSS
$custom: #3c23a6;
$custom-light: #8062c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c23a6",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 251.45,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38758,
    "c": 0.19327,
    "h": 281.2
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#3C23A6
secondary
#B1C461
accent
#E840C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3C23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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