#3C127E#3C127E

#3C127E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.162 H 292.3°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#3C127E
RGBrgb(60, 18, 126)
HSLhsl(263, 75%, 28%)
HSVhsv(263, 86%, 49%)
CMYKcmyk(52.4%, 85.7%, 0%, 50.6%)
CIE-LABlab(19.64, 43.75, -52.22)
CIE-LCHlch(19.64, 68.12, 309.95°)
OKLaboklab(32.74% 0.0616 -0.15)
OKLCHoklch(32.74% 0.162 292.3)
XYZxyz(5.8446, 2.8994, 19.9863)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C127E #547E12
analogous
#121E7E #3C127E #72127E
triadic
#3C127E #7E3C12 #127E3C
tetradic
#3C127E #7E121E #547E12 #127E72
square
#3C127E #7E121E #547E12 #127E72
split-complementary
#3C127E #7E7212 #1E7E12
monochromatic
#0D041B #220A48 #3C127E #551AB4 #712AE1

Accessibility & contrast

On white

13.29
#3C127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3C127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C127E
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C127E#FFFFFF#000000##FFFFFF
##3C127E1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#26334A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3c127e;
/* rgb */ color: rgb(60, 18, 126);
/* oklch */ color: oklch(32.7% 0.162 292.3);
Tailwind
colors: {
  custom: {
    50: '#7a57a4',
    500: '#3c127e',
    950: '#000000',
  },
}
SCSS
$custom: #3c127e;
$custom-light: #7a57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c127e",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 263.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32742,
    "c": 0.1622,
    "h": 292.3
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#3C127E
secondary
#84B438
accent
#F236A9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3C127E

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

Preview Lab → · Contrast checker → · Palette generator →

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