#3C31AB#3C31AB

#3C31AB is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.185 H 278.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#3C31AB
RGBrgb(60, 49, 171)
HSLhsl(245, 55%, 43%)
HSVhsv(245, 71%, 67%)
CMYKcmyk(64.9%, 71.3%, 0%, 32.9%)
CIE-LABlab(29.66, 41.67, -63.51)
CIE-LCHlch(29.66, 75.96, 303.27°)
OKLaboklab(41.14% 0.0273 -0.1833)
OKLCHoklch(41.14% 0.185 278.5)
XYZxyz(10.3101, 6.0967, 39.1536)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C31AB #A0AB31
analogous
#3163AB #3C31AB #7931AB
triadic
#3C31AB #AB3C31 #31AB3C
tetradic
#3C31AB #AB3163 #A0AB31 #31AB79
square
#3C31AB #AB3163 #A0AB31 #31AB79
split-complementary
#3C31AB #AB7931 #63AB31
monochromatic
#1B164C #2B237B #3C31AB #594DCC #857DDA

Accessibility & contrast

On white

9.46
#3C31AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3C31AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C31AB
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C31AB#FFFFFF#000000##FFFFFF
##3C31AB1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c31ab;
/* rgb */ color: rgb(60, 49, 171);
/* oklch */ color: oklch(41.1% 0.185 278.5);
Tailwind
colors: {
  custom: {
    50: '#806bc5',
    500: '#3c31ab',
    950: '#000000',
  },
}
SCSS
$custom: #3c31ab;
$custom-light: #806bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3c31ab",
  "rgb": {
    "r": 60,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 245.41,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41143,
    "c": 0.1853,
    "h": 278.5
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3C31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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