#3C1173#3C1173

#3C1173 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.151 H 296.1°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#3C1173
RGBrgb(60, 17, 115)
HSLhsl(266, 74%, 26%)
HSVhsv(266, 85%, 45%)
CMYKcmyk(47.8%, 85.2%, 0%, 54.9%)
CIE-LABlab(18.36, 41.19, -47.27)
CIE-LCHlch(18.36, 62.69, 311.07°)
OKLaboklab(31.52% 0.0665 -0.1355)
OKLCHoklch(31.52% 0.151 296.1)
XYZxyz(5.1576, 2.5992, 16.4463)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1173 #487311
analogous
#111773 #3C1173 #6D1173
triadic
#3C1173 #733C11 #11733C
tetradic
#3C1173 #731117 #487311 #11736D
square
#3C1173 #731117 #487311 #11736D
split-complementary
#3C1173 #736D11 #177311
monochromatic
#0E041B #20093E #3C1173 #5819A8 #7421DE

Accessibility & contrast

On white

13.82
#3C1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1173
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1173#FFFFFF#000000##FFFFFF
##3C11731.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#2C2E43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c1173;
/* rgb */ color: rgb(60, 17, 115);
/* oklch */ color: oklch(31.5% 0.151 296.1);
Tailwind
colors: {
  custom: {
    50: '#78569c',
    500: '#3c1173',
    950: '#000000',
  },
}
SCSS
$custom: #3c1173;
$custom-light: #78569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1173",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 266.327,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31519,
    "c": 0.15095,
    "h": 296.1
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#3C1173
secondary
#77AA36
accent
#F1379F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3C1173

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

Preview Lab → · Contrast checker → · Palette generator →

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