#3C40BB#3C40BB

#3C40BB is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.189 H 274.4°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#3C40BB
RGBrgb(60, 64, 187)
HSLhsl(238, 51%, 48%)
HSVhsv(238, 68%, 73%)
CMYKcmyk(67.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.42, 38.02, -65.19)
CIE-LCHlch(34.42, 75.47, 300.25°)
OKLaboklab(45.03% 0.0145 -0.1882)
OKLCHoklch(45.03% 0.189 274.4)
XYZxyz(12.6635, 8.2141, 47.9222)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40BB #BBB73C
analogous
#3C7FBB #3C40BB #773CBB
triadic
#3C40BB #BB3C40 #40BB3C
tetradic
#3C40BB #BB3C7F #BBB73C #3CBB77
square
#3C40BB #BB3C7F #BBB73C #3CBB77
split-complementary
#3C40BB #BB773C #7FBB3C
monochromatic
#1E205E #2D308D #3C40BB #6669CE #9597DD

Accessibility & contrast

On white

7.95
#3C40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3C40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40BB
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40BB#FFFFFF#000000##FFFFFF
##3C40BB1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3c40bb;
/* rgb */ color: rgb(60, 64, 187);
/* oklch */ color: oklch(45.0% 0.189 274.4);
Tailwind
colors: {
  custom: {
    50: '#8275d0',
    500: '#3c40bb',
    950: '#000000',
  },
}
SCSS
$custom: #3c40bb;
$custom-light: #8275d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40bb",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 238.11,
    "s": 51.417,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45031,
    "c": 0.18876,
    "h": 274.4
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#3C40BB
secondary
#C8C68B
accent
#D64DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3C40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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