#3C127F#3C127F

#3C127F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.163 H 292.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#3C127F
RGBrgb(60, 18, 127)
HSLhsl(263, 75%, 28%)
HSVhsv(263, 86%, 50%)
CMYKcmyk(52.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(19.74, 44.02, -52.68)
CIE-LCHlch(19.74, 68.65, 309.88°)
OKLaboklab(32.85% 0.0612 -0.1514)
OKLCHoklch(32.85% 0.163 292)
XYZxyz(5.9095, 2.9253, 20.3278)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C127F #557F12
analogous
#121F7F #3C127F #72127F
triadic
#3C127F #7F3C12 #127F3C
tetradic
#3C127F #7F121F #557F12 #127F72
square
#3C127F #7F121F #557F12 #127F72
split-complementary
#3C127F #7F7212 #1F7F12
monochromatic
#0D041B #230A49 #3C127F #551AB5 #712BE1

Accessibility & contrast

On white

13.25
#3C127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3C127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C127F
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C127F#FFFFFF#000000##FFFFFF
##3C127F1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#25334A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3c127f;
/* rgb */ color: rgb(60, 18, 127);
/* oklch */ color: oklch(32.8% 0.163 292.0);
Tailwind
colors: {
  custom: {
    50: '#7a57a5',
    500: '#3c127f',
    950: '#000000',
  },
}
SCSS
$custom: #3c127f;
$custom-light: #7a57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3c127f",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 263.119,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.16331,
    "h": 292
  },
  "luminance": 0.02926
}

Semantic roles & 50–950 ramp

primary
#3C127F
secondary
#85B538
accent
#F236A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3C127F

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

Preview Lab → · Contrast checker → · Palette generator →

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