#3C31B7#3C31B7

#3C31B7 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.3% C 0.200 H 277.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#3C31B7
RGBrgb(60, 49, 183)
HSLhsl(245, 58%, 45%)
HSVhsv(245, 73%, 72%)
CMYKcmyk(67.2%, 73.2%, 0%, 28.2%)
CIE-LABlab(30.82, 45.54, -68.75)
CIE-LCHlch(30.82, 82.46, 303.52°)
OKLaboklab(42.32% 0.0251 -0.1986)
OKLCHoklch(42.32% 0.2 277.2)
XYZxyz(11.5063, 6.5752, 45.4533)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C31B7 #ACB731
analogous
#3169B7 #3C31B7 #7F31B7
triadic
#3C31B7 #B73C31 #31B73C
tetradic
#3C31B7 #B73169 #ACB731 #31B77F
square
#3C31B7 #B73169 #ACB731 #31B77F
split-complementary
#3C31B7 #B77F31 #69B731
monochromatic
#1C1756 #2C2487 #3C31B7 #5E54D1 #8C84DE

Accessibility & contrast

On white

9.07
#3C31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3C31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C31B7
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C31B7#FFFFFF#000000##FFFFFF
##3C31B71.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3c31b7;
/* rgb */ color: rgb(60, 49, 183);
/* oklch */ color: oklch(42.3% 0.200 277.2);
Tailwind
colors: {
  custom: {
    50: '#826bce',
    500: '#3c31b7',
    950: '#000000',
  },
}
SCSS
$custom: #3c31b7;
$custom-light: #826bce;
$custom-dark: #000000;
JSON
{
  "hex": "#3c31b7",
  "rgb": {
    "r": 60,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 244.925,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42324,
    "c": 0.20017,
    "h": 277.2
  },
  "luminance": 0.06576
}

Semantic roles & 50–950 ramp

primary
#3C31B7
secondary
#C1C87C
accent
#E147D4
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3C31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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