#3C40CB#3C40CB

#3C40CB is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.5% C 0.209 H 273.5°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#3C40CB
RGBrgb(60, 64, 203)
HSLhsl(238, 58%, 52%)
HSVhsv(238, 70%, 80%)
CMYKcmyk(70.4%, 68.5%, 0%, 20.4%)
CIE-LABlab(35.86, 43.45, -72.19)
CIE-LCHlch(35.86, 84.26, 301.04°)
OKLaboklab(46.51% 0.0127 -0.2087)
OKLCHoklch(46.51% 0.209 273.5)
XYZxyz(14.4728, 8.9378, 57.4508)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40CB #CBC73C
analogous
#3C88CB #3C40CB #803CCB
triadic
#3C40CB #CB3C40 #40CB3C
tetradic
#3C40CB #CB3C88 #CBC73C #3CCB80
square
#3C40CB #CB3C88 #CBC73C #3CCB80
split-complementary
#3C40CB #CB803C #88CB3C
monochromatic
#1E206F #2A2E9F #3C40CB #6C6FD8 #9D9FE5

Accessibility & contrast

On white

7.53
#3C40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3C40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40CB
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40CB#FFFFFF#000000##FFFFFF
##3C40CB1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#004EC8
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3c40cb;
/* rgb */ color: rgb(60, 64, 203);
/* oklch */ color: oklch(46.5% 0.209 273.5);
Tailwind
colors: {
  custom: {
    50: '#8576dc',
    500: '#3c40cb',
    950: '#000000',
  },
}
SCSS
$custom: #3c40cb;
$custom-light: #8576dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40cb",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 238.322,
    "s": 57.895,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46514,
    "c": 0.20908,
    "h": 273.5
  },
  "luminance": 0.08939
}

Semantic roles & 50–950 ramp

primary
#3C40CB
secondary
#D1CF92
accent
#DD47E1
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3C40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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