#3C279D#3C279D

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

Color values

HEX#3C279D
RGBrgb(60, 39, 157)
HSLhsl(251, 60%, 38%)
HSVhsv(251, 75%, 62%)
CMYKcmyk(61.8%, 75.2%, 0%, 38.4%)
CIE-LABlab(26.29, 42.82, -60.57)
CIE-LCHlch(26.29, 74.18, 305.26°)
OKLaboklab(38.34% 0.0373 -0.1746)
OKLCHoklch(38.34% 0.179 282.1)
XYZxyz(8.6729, 4.8454, 32.3700)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C279D #889D27
analogous
#274D9D #3C279D #77279D
triadic
#3C279D #9D3C27 #279D3C
tetradic
#3C279D #9D274D #889D27 #279D77
square
#3C279D #9D274D #889D27 #279D77
split-complementary
#3C279D #9D7727 #4D9D27
monochromatic
#170F3B #291B6C #3C279D #5035CD #7A66D9

Accessibility & contrast

On white

10.66
#3C279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3C279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C279D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C279D#FFFFFF#000000##FFFFFF
##3C279D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3c279d;
/* rgb */ color: rgb(60, 39, 157);
/* oklch */ color: oklch(38.3% 0.179 282.1);
Tailwind
colors: {
  custom: {
    50: '#7e64bb',
    500: '#3c279d',
    950: '#000000',
  },
}
SCSS
$custom: #3c279d;
$custom-light: #7e64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3c279d",
  "rgb": {
    "r": 60,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 250.678,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3834,
    "c": 0.1786,
    "h": 282.1
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#3C279D
secondary
#AEBF61
accent
#E344C7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3C279D

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

Preview Lab → · Contrast checker → · Palette generator →

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