#3C1258#3C1258

#3C1258 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.1% C 0.120 H 307.9°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#3C1258
RGBrgb(60, 18, 88)
HSLhsl(276, 66%, 21%)
HSVhsv(276, 80%, 35%)
CMYKcmyk(31.8%, 79.5%, 0%, 65.5%)
CIE-LABlab(15.99, 33.68, -33.34)
CIE-LCHlch(15.99, 47.39, 315.29°)
OKLaboklab(29.09% 0.0736 -0.0946)
OKLCHoklch(29.09% 0.12 307.9)
XYZxyz(3.8409, 2.0979, 9.4332)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1258 #2E5812
analogous
#191258 #3C1258 #581251
triadic
#3C1258 #583C12 #12583C
tetradic
#3C1258 #581912 #2E5812 #125158
square
#3C1258 #581912 #2E5812 #125158
split-complementary
#3C1258 #515812 #125819
monochromatic
#110519 #190825 #3C1258 #5F1C8B #8127BE

Accessibility & contrast

On white

14.79
#3C1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3C1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1258
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1258#FFFFFF#000000##FFFFFF
##3C12581.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c1258;
/* rgb */ color: rgb(60, 18, 88);
/* oklch */ color: oklch(29.1% 0.120 307.9);
Tailwind
colors: {
  custom: {
    50: '#755588',
    500: '#3c1258',
    950: '#000000',
  },
}
SCSS
$custom: #3c1258;
$custom-light: #755588;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1258",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 276,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29086,
    "c": 0.11987,
    "h": 307.9
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#3C1258
secondary
#5A9135
accent
#E93F83
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3C1258

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

Preview Lab → · Contrast checker → · Palette generator →

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