#3C31BA#3C31BA

#3C31BA is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.6% C 0.204 H 276.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#3C31BA
RGBrgb(60, 49, 186)
HSLhsl(245, 58%, 46%)
HSVhsv(245, 74%, 73%)
CMYKcmyk(67.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(31.12, 46.49, -70.04)
CIE-LCHlch(31.12, 84.06, 303.58°)
OKLaboklab(42.63% 0.0245 -0.2023)
OKLCHoklch(42.63% 0.204 276.9)
XYZxyz(11.8218, 6.7014, 47.1154)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C31BA #AFBA31
analogous
#316ABA #3C31BA #8031BA
triadic
#3C31BA #BA3C31 #31BA3C
tetradic
#3C31BA #BA316A #AFBA31 #31BA80
square
#3C31BA #BA316A #AFBA31 #31BA80
split-complementary
#3C31BA #BA8031 #6ABA31
monochromatic
#1D1759 #2C248A #3C31BA #6056D2 #8D86DF

Accessibility & contrast

On white

8.97
#3C31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3C31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C31BA
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C31BA#FFFFFF#000000##FFFFFF
##3C31BA1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0043B8
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3c31ba;
/* rgb */ color: rgb(60, 49, 186);
/* oklch */ color: oklch(42.6% 0.204 276.9);
Tailwind
colors: {
  custom: {
    50: '#836bd0',
    500: '#3c31ba',
    950: '#000000',
  },
}
SCSS
$custom: #3c31ba;
$custom-light: #836bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c31ba",
  "rgb": {
    "r": 60,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 244.818,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42625,
    "c": 0.20382,
    "h": 276.9
  },
  "luminance": 0.06702
}

Semantic roles & 50–950 ramp

primary
#3C31BA
secondary
#C3C97E
accent
#E246D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3C31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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