#3C31AA#3C31AA

#3C31AA is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.0% C 0.184 H 278.6°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#3C31AA
RGBrgb(60, 49, 170)
HSLhsl(245, 55%, 43%)
HSVhsv(245, 71%, 67%)
CMYKcmyk(64.7%, 71.2%, 0%, 33.3%)
CIE-LABlab(29.56, 41.34, -63.06)
CIE-LCHlch(29.56, 75.41, 303.25°)
OKLaboklab(41.05% 0.0275 -0.182)
OKLCHoklch(41.05% 0.184 278.6)
XYZxyz(10.2152, 6.0587, 38.6536)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C31AA #9FAA31
analogous
#3162AA #3C31AA #7931AA
triadic
#3C31AA #AA3C31 #31AA3C
tetradic
#3C31AA #AA3162 #9FAA31 #31AA79
square
#3C31AA #AA3162 #9FAA31 #31AA79
split-complementary
#3C31AA #AA7931 #62AA31
monochromatic
#1A164B #2B237A #3C31AA #584DCC #857CD9

Accessibility & contrast

On white

9.49
#3C31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3C31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C31AA
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C31AA#FFFFFF#000000##FFFFFF
##3C31AA1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3c31aa;
/* rgb */ color: rgb(60, 49, 170);
/* oklch */ color: oklch(41.0% 0.184 278.6);
Tailwind
colors: {
  custom: {
    50: '#806bc4',
    500: '#3c31aa',
    950: '#000000',
  },
}
SCSS
$custom: #3c31aa;
$custom-light: #806bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c31aa",
  "rgb": {
    "r": 60,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 245.455,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41046,
    "c": 0.18405,
    "h": 278.6
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#3C31AA
secondary
#BBC275
accent
#DF49D1
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3C31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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