#3C40C6#3C40C6

#3C40C6 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.0% C 0.203 H 273.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#3C40C6
RGBrgb(60, 64, 198)
HSLhsl(238, 55%, 51%)
HSVhsv(238, 70%, 78%)
CMYKcmyk(69.7%, 67.7%, 0%, 22.4%)
CIE-LABlab(35.41, 41.76, -70.03)
CIE-LCHlch(35.41, 81.54, 300.81°)
OKLaboklab(46.04% 0.0133 -0.2024)
OKLCHoklch(46.04% 0.203 273.8)
XYZxyz(13.8865, 8.7033, 54.3632)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40C6 #C6C23C
analogous
#3C85C6 #3C40C6 #7D3CC6
triadic
#3C40C6 #C63C40 #40C63C
tetradic
#3C40C6 #C63C85 #C6C23C #3CC67D
square
#3C40C6 #C63C85 #C6C23C #3CC67D
split-complementary
#3C40C6 #C67D3C #85C63C
monochromatic
#1F2169 #2D3098 #3C40C6 #6B6ED4 #9B9DE2

Accessibility & contrast

On white

7.66
#3C40C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#3C40C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40C6
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40C6#FFFFFF#000000##FFFFFF
##3C40C61.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c40c6;
/* rgb */ color: rgb(60, 64, 198);
/* oklch */ color: oklch(46.0% 0.203 273.8);
Tailwind
colors: {
  custom: {
    50: '#8475d8',
    500: '#3c40c6',
    950: '#000000',
  },
}
SCSS
$custom: #3c40c6;
$custom-light: #8475d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40c6",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 238.261,
    "s": 54.762,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46044,
    "c": 0.20281,
    "h": 273.8
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#3C40C6
secondary
#CECC90
accent
#DA4ADE
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3C40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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