#3C1255#3C1255

#3C1255 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.8% C 0.117 H 309.5°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#3C1255
RGBrgb(60, 18, 85)
HSLhsl(278, 65%, 20%)
HSVhsv(278, 79%, 33%)
CMYKcmyk(29.4%, 78.8%, 0%, 66.7%)
CIE-LABlab(15.74, 32.92, -31.72)
CIE-LCHlch(15.74, 45.72, 316.07°)
OKLaboklab(28.83% 0.0741 -0.0899)
OKLCHoklch(28.83% 0.117 309.5)
XYZxyz(3.7192, 2.0492, 8.7922)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1255 #2B5512
analogous
#1A1255 #3C1255 #55124C
triadic
#3C1255 #553C12 #12553C
tetradic
#3C1255 #551A12 #2B5512 #124C55
square
#3C1255 #551A12 #2B5512 #124C55
split-complementary
#3C1255 #4C5512 #12551A
monochromatic
#120519 #180722 #3C1255 #601D88 #8327BA

Accessibility & contrast

On white

14.90
#3C1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1255
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1255#FFFFFF#000000##FFFFFF
##3C12551.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#042854
Tritanopia (blue-blind)
#382132
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3c1255;
/* rgb */ color: rgb(60, 18, 85);
/* oklch */ color: oklch(28.8% 0.117 309.5);
Tailwind
colors: {
  custom: {
    50: '#755485',
    500: '#3c1255',
    950: '#000000',
  },
}
SCSS
$custom: #3c1255;
$custom-light: #755485;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1255",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 277.612,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28831,
    "c": 0.1165,
    "h": 309.5
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#3C1255
secondary
#568E35
accent
#E8407F
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3C1255

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

Preview Lab → · Contrast checker → · Palette generator →

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