#3C31B9#3C31B9

#3C31B9 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.5% C 0.203 H 277.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#3C31B9
RGBrgb(60, 49, 185)
HSLhsl(245, 58%, 46%)
HSVhsv(245, 74%, 73%)
CMYKcmyk(67.6%, 73.5%, 0%, 27.5%)
CIE-LABlab(31.02, 46.18, -69.61)
CIE-LCHlch(31.02, 83.53, 303.56°)
OKLaboklab(42.52% 0.0247 -0.2011)
OKLCHoklch(42.52% 0.203 277)
XYZxyz(11.7159, 6.6590, 46.5574)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C31B9 #AEB931
analogous
#316AB9 #3C31B9 #8031B9
triadic
#3C31B9 #B93C31 #31B93C
tetradic
#3C31B9 #B9316A #AEB931 #31B980
square
#3C31B9 #B9316A #AEB931 #31B980
split-complementary
#3C31B9 #B98031 #6AB931
monochromatic
#1D1758 #2C2489 #3C31B9 #5F55D2 #8D86DF

Accessibility & contrast

On white

9.01
#3C31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3C31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C31B9
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C31B9#FFFFFF#000000##FFFFFF
##3C31B91.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0043B7
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3c31b9;
/* rgb */ color: rgb(60, 49, 185);
/* oklch */ color: oklch(42.5% 0.203 277.0);
Tailwind
colors: {
  custom: {
    50: '#836bcf',
    500: '#3c31b9',
    950: '#000000',
  },
}
SCSS
$custom: #3c31b9;
$custom-light: #836bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3c31b9",
  "rgb": {
    "r": 60,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 244.853,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42524,
    "c": 0.20262,
    "h": 277
  },
  "luminance": 0.0666
}

Semantic roles & 50–950 ramp

primary
#3C31B9
secondary
#C2C87D
accent
#E146D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3C31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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