#3C40C3#3C40C3

#3C40C3 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.199 H 273.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#3C40C3
RGBrgb(60, 64, 195)
HSLhsl(238, 53%, 50%)
HSVhsv(238, 69%, 76%)
CMYKcmyk(69.2%, 67.2%, 0%, 23.5%)
CIE-LABlab(35.14, 40.75, -68.72)
CIE-LCHlch(35.14, 79.90, 300.66°)
OKLaboklab(45.76% 0.0137 -0.1985)
OKLCHoklch(45.76% 0.199 273.9)
XYZxyz(13.5439, 8.5663, 52.5589)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40C3 #C3BF3C
analogous
#3C84C3 #3C40C3 #7B3CC3
triadic
#3C40C3 #C33C40 #40C33C
tetradic
#3C40C3 #C33C84 #C3BF3C #3CC37B
square
#3C40C3 #C33C84 #C3BF3C #3CC37B
split-complementary
#3C40C3 #C37B3C #84C33C
monochromatic
#1F2165 #2E3194 #3C40C3 #6B6ED1 #9A9CE0

Accessibility & contrast

On white

7.74
#3C40C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3C40C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40C3
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40C3#FFFFFF#000000##FFFFFF
##3C40C31.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#004CC1
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3c40c3;
/* rgb */ color: rgb(60, 64, 195);
/* oklch */ color: oklch(45.8% 0.199 273.9);
Tailwind
colors: {
  custom: {
    50: '#8475d6',
    500: '#3c40c3',
    950: '#000000',
  },
}
SCSS
$custom: #3c40c3;
$custom-light: #8475d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40c3",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 238.222,
    "s": 52.941,
    "l": 50
  },
  "oklch": {
    "l": 0.45764,
    "c": 0.19902,
    "h": 273.9
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

primary
#3C40C3
secondary
#CCCA8F
accent
#D84BDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3C40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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