#3C40D5#3C40D5

#3C40D5 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.5% C 0.221 H 273.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#3C40D5
RGBrgb(60, 64, 213)
HSLhsl(238, 65%, 54%)
HSVhsv(238, 72%, 84%)
CMYKcmyk(71.8%, 70%, 0%, 16.5%)
CIE-LABlab(36.80, 46.78, -76.44)
CIE-LCHlch(36.80, 89.62, 301.46°)
OKLaboklab(47.47% 0.0115 -0.2211)
OKLCHoklch(47.47% 0.221 273)
XYZxyz(15.7031, 9.4300, 63.9305)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40D5 #D5D13C
analogous
#3C8CD5 #3C40D5 #843CD5
triadic
#3C40D5 #D53C40 #40D53C
tetradic
#3C40D5 #D53C8C #D5D13C #3CD584
square
#3C40D5 #D53C8C #D5D13C #3CD584
split-complementary
#3C40D5 #D5843C #8CD53C
monochromatic
#1B1D7C #2629AE #3C40D5 #6E71E0 #A1A3EB

Accessibility & contrast

On white

7.28
#3C40D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#3C40D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40D5
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40D5#FFFFFF#000000##FFFFFF
##3C40D51.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED9
Deuteranopia (green-blind)
#004FD2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3c40d5;
/* rgb */ color: rgb(60, 64, 213);
/* oklch */ color: oklch(47.5% 0.221 273.0);
Tailwind
colors: {
  custom: {
    50: '#8876e3',
    500: '#3c40d5',
    950: '#000000',
  },
}
SCSS
$custom: #3c40d5;
$custom-light: #8876e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40d5",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 238.431,
    "s": 64.557,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4747,
    "c": 0.22139,
    "h": 273
  },
  "luminance": 0.09432
}

Semantic roles & 50–950 ramp

primary
#3C40D5
secondary
#D7D596
accent
#E340E8
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3C40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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