#3C31AC#3C31AC

#3C31AC is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.2% C 0.187 H 278.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#3C31AC
RGBrgb(60, 49, 172)
HSLhsl(245, 56%, 43%)
HSVhsv(245, 72%, 67%)
CMYKcmyk(65.1%, 71.5%, 0%, 32.5%)
CIE-LABlab(29.75, 41.99, -63.95)
CIE-LCHlch(29.75, 76.50, 303.29°)
OKLaboklab(41.24% 0.0271 -0.1846)
OKLCHoklch(41.24% 0.187 278.4)
XYZxyz(10.4058, 6.1350, 39.6575)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C31AC #A1AC31
analogous
#3163AC #3C31AC #7931AC
triadic
#3C31AC #AC3C31 #31AC3C
tetradic
#3C31AC #AC3163 #A1AC31 #31AC79
square
#3C31AC #AC3163 #A1AC31 #31AC79
split-complementary
#3C31AC #AC7931 #63AC31
monochromatic
#1B164D #2B237C #3C31AC #594ECC #867DDA

Accessibility & contrast

On white

9.43
#3C31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3C31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C31AC
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C31AC#FFFFFF#000000##FFFFFF
##3C31AC1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0041AA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3c31ac;
/* rgb */ color: rgb(60, 49, 172);
/* oklch */ color: oklch(41.2% 0.187 278.4);
Tailwind
colors: {
  custom: {
    50: '#806bc6',
    500: '#3c31ac',
    950: '#000000',
  },
}
SCSS
$custom: #3c31ac;
$custom-light: #806bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3c31ac",
  "rgb": {
    "r": 60,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 245.366,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4124,
    "c": 0.18656,
    "h": 278.4
  },
  "luminance": 0.06136
}

Semantic roles & 50–950 ramp

primary
#3C31AC
secondary
#BCC376
accent
#DF49D2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3C31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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