#3C1158#3C1158

#3C1158 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.121 H 308.0°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#3C1158
RGBrgb(60, 17, 88)
HSLhsl(276, 68%, 21%)
HSVhsv(276, 81%, 35%)
CMYKcmyk(31.8%, 80.7%, 0%, 65.5%)
CIE-LABlab(15.83, 34.14, -33.60)
CIE-LCHlch(15.83, 47.90, 315.46°)
OKLaboklab(28.97% 0.0746 -0.0954)
OKLCHoklch(28.97% 0.121 308)
XYZxyz(3.8250, 2.0662, 9.4279)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1158 #2D5811
analogous
#181158 #3C1158 #581150
triadic
#3C1158 #583C11 #11583C
tetradic
#3C1158 #581811 #2D5811 #115058
square
#3C1158 #581811 #2D5811 #115058
split-complementary
#3C1158 #505811 #115818
monochromatic
#11051A #190725 #3C1158 #5F1B8B #8225BF

Accessibility & contrast

On white

14.86
#3C1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3C1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1158
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1158#FFFFFF#000000##FFFFFF
##3C11581.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#372234
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3c1158;
/* rgb */ color: rgb(60, 17, 88);
/* oklch */ color: oklch(29.0% 0.121 308.0);
Tailwind
colors: {
  custom: {
    50: '#755488',
    500: '#3c1158',
    950: '#000000',
  },
}
SCSS
$custom: #3c1158;
$custom-light: #755488;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1158",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 276.338,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28972,
    "c": 0.12112,
    "h": 308
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#3C1158
secondary
#599134
accent
#EA3D82
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3C1158

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

Preview Lab → · Contrast checker → · Palette generator →

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