#3C23A5#3C23A5

#3C23A5 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.192 H 281.4°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#3C23A5
RGBrgb(60, 35, 165)
HSLhsl(252, 65%, 39%)
HSVhsv(252, 79%, 65%)
CMYKcmyk(63.6%, 78.8%, 0%, 35.3%)
CIE-LABlab(26.39, 47.32, -65.27)
CIE-LCHlch(26.39, 80.62, 305.94°)
OKLaboklab(38.65% 0.0378 -0.1883)
OKLCHoklch(38.65% 0.192 281.4)
XYZxyz(9.2539, 4.8786, 36.0440)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C23A5 #8CA523
analogous
#234BA5 #3C23A5 #7D23A5
triadic
#3C23A5 #A53C23 #23A53C
tetradic
#3C23A5 #A5234B #8CA523 #23A57D
square
#3C23A5 #A5234B #8CA523 #23A57D
split-complementary
#3C23A5 #A57D23 #4BA523
monochromatic
#170E40 #2A1873 #3C23A5 #5132D3 #7C64DE

Accessibility & contrast

On white

10.63
#3C23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C23A5
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C23A5#FFFFFF#000000##FFFFFF
##3C23A51.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3c23a5;
/* rgb */ color: rgb(60, 35, 165);
/* oklch */ color: oklch(38.7% 0.192 281.4);
Tailwind
colors: {
  custom: {
    50: '#8062c1',
    500: '#3c23a5',
    950: '#000000',
  },
}
SCSS
$custom: #3c23a5;
$custom-light: #8062c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c23a5",
  "rgb": {
    "r": 60,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 251.538,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38653,
    "c": 0.1921,
    "h": 281.4
  },
  "luminance": 0.04879
}

Semantic roles & 50–950 ramp

primary
#3C23A5
secondary
#B0C460
accent
#E840C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3C23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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