#3C126A#3C126A

#3C126A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.140 H 299.4°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#3C126A
RGBrgb(60, 18, 106)
HSLhsl(269, 71%, 24%)
HSVhsv(269, 83%, 42%)
CMYKcmyk(43.4%, 83%, 0%, 58.4%)
CIE-LABlab(17.62, 38.37, -42.64)
CIE-LCHlch(17.62, 57.36, 311.98°)
OKLaboklab(30.73% 0.0688 -0.122)
OKLCHoklch(30.73% 0.14 299.4)
XYZxyz(4.6806, 2.4338, 13.8560)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C126A #406A12
analogous
#12146A #3C126A #68126A
triadic
#3C126A #6A3C12 #126A3C
tetradic
#3C126A #6A1214 #406A12 #126A68
square
#3C126A #6A1214 #406A12 #126A68
split-complementary
#3C126A #6A6812 #146A12
monochromatic
#0F041A #1E0936 #3C126A #5A1B9E #7724D3

Accessibility & contrast

On white

14.12
#3C126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3C126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C126A
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C126A#FFFFFF#000000##FFFFFF
##3C126A1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#312A3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3c126a;
/* rgb */ color: rgb(60, 18, 106);
/* oklch */ color: oklch(30.7% 0.140 299.4);
Tailwind
colors: {
  custom: {
    50: '#775695',
    500: '#3c126a',
    950: '#000000',
  },
}
SCSS
$custom: #3c126a;
$custom-light: #775695;
$custom-dark: #000000;
JSON
{
  "hex": "#3c126a",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 268.636,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30731,
    "c": 0.14001,
    "h": 299.4
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#3C126A
secondary
#6EA236
accent
#EE3A98
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C126A

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

Preview Lab → · Contrast checker → · Palette generator →

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