#3C27A2#3C27A2

#3C27A2 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.185 H 281.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#3C27A2
RGBrgb(60, 39, 162)
HSLhsl(250, 61%, 39%)
HSVhsv(250, 76%, 64%)
CMYKcmyk(63%, 75.9%, 0%, 36.5%)
CIE-LABlab(26.79, 44.37, -62.79)
CIE-LCHlch(26.79, 76.88, 305.25°)
OKLaboklab(38.84% 0.0361 -0.1811)
OKLCHoklch(38.84% 0.185 281.3)
XYZxyz(9.1085, 5.0197, 34.6643)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C27A2 #8DA227
analogous
#2750A2 #3C27A2 #7A27A2
triadic
#3C27A2 #A23C27 #27A23C
tetradic
#3C27A2 #A22750 #8DA227 #27A27A
square
#3C27A2 #A22750 #8DA227 #27A27A
split-complementary
#3C27A2 #A27A27 #50A227
monochromatic
#170F3F #2A1B71 #3C27A2 #5137CF #7C69DB

Accessibility & contrast

On white

10.48
#3C27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3C27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C27A2
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C27A2#FFFFFF#000000##FFFFFF
##3C27A21.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3c27a2;
/* rgb */ color: rgb(60, 39, 162);
/* oklch */ color: oklch(38.8% 0.185 281.3);
Tailwind
colors: {
  custom: {
    50: '#7f64bf',
    500: '#3c27a2',
    950: '#000000',
  },
}
SCSS
$custom: #3c27a2;
$custom-light: #7f64bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3c27a2",
  "rgb": {
    "r": 60,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 250.244,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38844,
    "c": 0.18469,
    "h": 281.3
  },
  "luminance": 0.0502
}

Semantic roles & 50–950 ramp

primary
#3C27A2
secondary
#B1C164
accent
#E443C9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3C27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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