#3C126F#3C126F

#3C126F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.146 H 297.5°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#3C126F
RGBrgb(60, 18, 111)
HSLhsl(267, 72%, 25%)
HSVhsv(267, 84%, 44%)
CMYKcmyk(45.9%, 83.8%, 0%, 56.5%)
CIE-LABlab(18.10, 39.71, -45.10)
CIE-LCHlch(18.10, 60.09, 311.36°)
OKLaboklab(31.22% 0.0671 -0.1292)
OKLCHoklch(31.22% 0.146 297.5)
XYZxyz(4.9483, 2.5409, 15.2656)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C126F #456F12
analogous
#12166F #3C126F #6A126F
triadic
#3C126F #6F3C12 #126F3C
tetradic
#3C126F #6F1216 #456F12 #126F6A
square
#3C126F #6F1216 #456F12 #126F6A
split-complementary
#3C126F #6F6A12 #166F12
monochromatic
#0E041A #20093A #3C126F #581BA4 #7523D8

Accessibility & contrast

On white

13.92
#3C126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3C126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C126F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C126F#FFFFFF#000000##FFFFFF
##3C126F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#2E2C41
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3c126f;
/* rgb */ color: rgb(60, 18, 111);
/* oklch */ color: oklch(31.2% 0.146 297.5);
Tailwind
colors: {
  custom: {
    50: '#785699',
    500: '#3c126f',
    950: '#000000',
  },
}
SCSS
$custom: #3c126f;
$custom-light: #785699;
$custom-dark: #000000;
JSON
{
  "hex": "#3c126f",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 267.097,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31217,
    "c": 0.14558,
    "h": 297.5
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#3C126F
secondary
#74A637
accent
#EF399D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3C126F

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

Preview Lab → · Contrast checker → · Palette generator →

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