#3C1174#3C1174

#3C1174 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.152 H 295.8°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#3C1174
RGBrgb(60, 17, 116)
HSLhsl(266, 74%, 26%)
HSVhsv(266, 85%, 45%)
CMYKcmyk(48.3%, 85.3%, 0%, 54.5%)
CIE-LABlab(18.46, 41.45, -47.75)
CIE-LCHlch(18.46, 63.23, 310.96°)
OKLaboklab(31.62% 0.0661 -0.1369)
OKLCHoklch(31.62% 0.152 295.8)
XYZxyz(5.2155, 2.6224, 16.7510)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1174 #497411
analogous
#111774 #3C1174 #6D1174
triadic
#3C1174 #743C11 #11743C
tetradic
#3C1174 #741117 #497411 #11746D
square
#3C1174 #741117 #497411 #11746D
split-complementary
#3C1174 #746D11 #177411
monochromatic
#0E041B #20093F #3C1174 #5819A9 #7321DE

Accessibility & contrast

On white

13.77
#3C1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3C1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1174
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1174#FFFFFF#000000##FFFFFF
##3C11741.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#2C2E44
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c1174;
/* rgb */ color: rgb(60, 17, 116);
/* oklch */ color: oklch(31.6% 0.152 295.8);
Tailwind
colors: {
  custom: {
    50: '#79569d',
    500: '#3c1174',
    950: '#000000',
  },
}
SCSS
$custom: #3c1174;
$custom-light: #79569d;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1174",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 266.061,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3162,
    "c": 0.15205,
    "h": 295.8
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#3C1174
secondary
#78AB36
accent
#F137A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3C1174

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

Preview Lab → · Contrast checker → · Palette generator →

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