#3C0F56#3C0F56

#3C0F56 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.121 H 309.5°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#3C0F56
RGBrgb(60, 15, 86)
HSLhsl(278, 70%, 20%)
HSVhsv(278, 83%, 34%)
CMYKcmyk(30.2%, 82.6%, 0%, 66.3%)
CIE-LABlab(15.35, 34.53, -33.03)
CIE-LCHlch(15.35, 47.78, 316.27°)
OKLaboklab(28.58% 0.0771 -0.0937)
OKLCHoklch(28.58% 0.121 309.5)
XYZxyz(3.7137, 1.9743, 8.9877)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C0F56 #29560F
analogous
#180F56 #3C0F56 #560F4D
triadic
#3C0F56 #563C0F #0F563C
tetradic
#3C0F56 #56180F #29560F #0F4D56
square
#3C0F56 #56180F #29560F #0F4D56
split-complementary
#3C0F56 #4D560F #0F5618
monochromatic
#12051A #180622 #3C0F56 #60188A #8521BE

Accessibility & contrast

On white

15.06
#3C0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3C0F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C0F56
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C0F56#FFFFFF#000000##FFFFFF
##3C0F561.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#382032
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3c0f56;
/* rgb */ color: rgb(60, 15, 86);
/* oklch */ color: oklch(28.6% 0.121 309.5);
Tailwind
colors: {
  custom: {
    50: '#755386',
    500: '#3c0f56',
    950: '#000000',
  },
}
SCSS
$custom: #3c0f56;
$custom-light: #755386;
$custom-dark: #000000;
JSON
{
  "hex": "#3c0f56",
  "rgb": {
    "r": 60,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 278.028,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28581,
    "c": 0.12137,
    "h": 309.5
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#3C0F56
secondary
#549031
accent
#ED3B7C
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3C0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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