#3C40CC#3C40CC

#3C40CC is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.210 H 273.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#3C40CC
RGBrgb(60, 64, 204)
HSLhsl(238, 59%, 52%)
HSVhsv(238, 71%, 80%)
CMYKcmyk(70.6%, 68.6%, 0%, 20%)
CIE-LABlab(35.96, 43.78, -72.62)
CIE-LCHlch(35.96, 84.80, 301.08°)
OKLaboklab(46.61% 0.0126 -0.2099)
OKLCHoklch(46.61% 0.21 273.4)
XYZxyz(14.5923, 8.9857, 58.0804)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40CC #CCC83C
analogous
#3C88CC #3C40CC #803CCC
triadic
#3C40CC #CC3C40 #40CC3C
tetradic
#3C40CC #CC3C88 #CCC83C #3CCC80
square
#3C40CC #CC3C88 #CCC83C #3CCC80
split-complementary
#3C40CC #CC803C #88CC3C
monochromatic
#1D2070 #2A2DA1 #3C40CC #6D70D9 #9D9FE5

Accessibility & contrast

On white

7.51
#3C40CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3C40CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40CC
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40CC#FFFFFF#000000##FFFFFF
##3C40CC1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3c40cc;
/* rgb */ color: rgb(60, 64, 204);
/* oklch */ color: oklch(46.6% 0.210 273.4);
Tailwind
colors: {
  custom: {
    50: '#8676dd',
    500: '#3c40cc',
    950: '#000000',
  },
}
SCSS
$custom: #3c40cc;
$custom-light: #8676dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40cc",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 238.333,
    "s": 58.537,
    "l": 51.765
  },
  "oklch": {
    "l": 0.46608,
    "c": 0.21032,
    "h": 273.4
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#3C40CC
secondary
#D1D092
accent
#DD46E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3C40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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