#3C40BD#3C40BD

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

Color values

HEX#3C40BD
RGBrgb(60, 64, 189)
HSLhsl(238, 52%, 49%)
HSVhsv(238, 68%, 74%)
CMYKcmyk(68.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(34.60, 38.71, -66.08)
CIE-LCHlch(34.60, 76.58, 300.36°)
OKLaboklab(45.21% 0.0143 -0.1908)
OKLCHoklch(45.21% 0.191 274.3)
XYZxyz(12.8791, 8.3004, 49.0577)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40BD #BDB93C
analogous
#3C81BD #3C40BD #793CBD
triadic
#3C40BD #BD3C40 #40BD3C
tetradic
#3C40BD #BD3C81 #BDB93C #3CBD79
square
#3C40BD #BD3C81 #BDB93C #3CBD79
split-complementary
#3C40BD #BD793C #81BD3C
monochromatic
#1F2160 #2D308F #3C40BD #676BCF #9698DE

Accessibility & contrast

On white

7.89
#3C40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3C40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40BD
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40BD#FFFFFF#000000##FFFFFF
##3C40BD1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#004BBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3c40bd;
/* rgb */ color: rgb(60, 64, 189);
/* oklch */ color: oklch(45.2% 0.191 274.3);
Tailwind
colors: {
  custom: {
    50: '#8275d2',
    500: '#3c40bd',
    950: '#000000',
  },
}
SCSS
$custom: #3c40bd;
$custom-light: #8275d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40bd",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 238.14,
    "s": 51.807,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45213,
    "c": 0.19134,
    "h": 274.3
  },
  "luminance": 0.08302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3C40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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