#3C40C7#3C40C7

#3C40C7 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.1% C 0.204 H 273.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#3C40C7
RGBrgb(60, 64, 199)
HSLhsl(238, 55%, 51%)
HSVhsv(238, 70%, 78%)
CMYKcmyk(69.8%, 67.8%, 0%, 22%)
CIE-LABlab(35.50, 42.10, -70.47)
CIE-LCHlch(35.50, 82.08, 300.86°)
OKLaboklab(46.14% 0.0132 -0.2036)
OKLCHoklch(46.14% 0.204 273.7)
XYZxyz(14.0022, 8.7496, 54.9727)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40C7 #C7C33C
analogous
#3C86C7 #3C40C7 #7D3CC7
triadic
#3C40C7 #C73C40 #40C73C
tetradic
#3C40C7 #C73C86 #C7C33C #3CC77D
square
#3C40C7 #C73C86 #C7C33C #3CC77D
split-complementary
#3C40C7 #C77D3C #86C73C
monochromatic
#1E216A #2C2F9A #3C40C7 #6C6FD5 #9B9DE2

Accessibility & contrast

On white

7.64
#3C40C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3C40C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40C7
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40C7#FFFFFF#000000##FFFFFF
##3C40C71.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#004DC4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3c40c7;
/* rgb */ color: rgb(60, 64, 199);
/* oklch */ color: oklch(46.1% 0.204 273.7);
Tailwind
colors: {
  custom: {
    50: '#8575d9',
    500: '#3c40c7',
    950: '#000000',
  },
}
SCSS
$custom: #3c40c7;
$custom-light: #8575d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40c7",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 238.273,
    "s": 55.378,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.20407,
    "h": 273.7
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

primary
#3C40C7
secondary
#CECC91
accent
#DA49DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3C40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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