#3C40BF#3C40BF

#3C40BF is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.194 H 274.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#3C40BF
RGBrgb(60, 64, 191)
HSLhsl(238, 52%, 49%)
HSVhsv(238, 69%, 75%)
CMYKcmyk(68.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(34.78, 39.39, -66.97)
CIE-LCHlch(34.78, 77.69, 300.46°)
OKLaboklab(45.4% 0.0141 -0.1934)
OKLCHoklch(45.4% 0.194 274.2)
XYZxyz(13.0977, 8.3878, 50.2089)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40BF #BFBB3C
analogous
#3C82BF #3C40BF #7A3CBF
triadic
#3C40BF #BF3C40 #40BF3C
tetradic
#3C40BF #BF3C82 #BFBB3C #3CBF7A
square
#3C40BF #BF3C82 #BFBB3C #3CBF7A
split-complementary
#3C40BF #BF7A3C #82BF3C
monochromatic
#1F2162 #2D3090 #3C40BF #686CD0 #9799DE

Accessibility & contrast

On white

7.84
#3C40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3C40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40BF
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40BF#FFFFFF#000000##FFFFFF
##3C40BF1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3c40bf;
/* rgb */ color: rgb(60, 64, 191);
/* oklch */ color: oklch(45.4% 0.194 274.2);
Tailwind
colors: {
  custom: {
    50: '#8375d3',
    500: '#3c40bf',
    950: '#000000',
  },
}
SCSS
$custom: #3c40bf;
$custom-light: #8375d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40bf",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 238.168,
    "s": 52.191,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45396,
    "c": 0.19391,
    "h": 274.2
  },
  "luminance": 0.08389
}

Semantic roles & 50–950 ramp

primary
#3C40BF
secondary
#CAC88D
accent
#D74CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3C40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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