#3C40BC#3C40BC

#3C40BC is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.190 H 274.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#3C40BC
RGBrgb(60, 64, 188)
HSLhsl(238, 52%, 49%)
HSVhsv(238, 68%, 74%)
CMYKcmyk(68.1%, 66%, 0%, 26.3%)
CIE-LABlab(34.51, 38.37, -65.64)
CIE-LCHlch(34.51, 76.03, 300.31°)
OKLaboklab(45.12% 0.0144 -0.1895)
OKLCHoklch(45.12% 0.19 274.3)
XYZxyz(12.7710, 8.2571, 48.4880)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40BC #BCB83C
analogous
#3C80BC #3C40BC #783CBC
triadic
#3C40BC #BC3C40 #40BC3C
tetradic
#3C40BC #BC3C80 #BCB83C #3CBC78
square
#3C40BC #BC3C80 #BCB83C #3CBC78
split-complementary
#3C40BC #BC783C #80BC3C
monochromatic
#1E205F #2D308E #3C40BC #676ACE #9597DD

Accessibility & contrast

On white

7.92
#3C40BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3C40BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40BC
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40BC#FFFFFF#000000##FFFFFF
##3C40BC1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3c40bc;
/* rgb */ color: rgb(60, 64, 188);
/* oklch */ color: oklch(45.1% 0.190 274.3);
Tailwind
colors: {
  custom: {
    50: '#8275d1',
    500: '#3c40bc',
    950: '#000000',
  },
}
SCSS
$custom: #3c40bc;
$custom-light: #8275d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40bc",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 238.125,
    "s": 51.613,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45121,
    "c": 0.19005,
    "h": 274.3
  },
  "luminance": 0.08258
}

Semantic roles & 50–950 ramp

primary
#3C40BC
secondary
#C9C78B
accent
#D74DDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3C40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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