#3C40BE#3C40BE

#3C40BE is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.3% C 0.193 H 274.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#3C40BE
RGBrgb(60, 64, 190)
HSLhsl(238, 52%, 49%)
HSVhsv(238, 68%, 75%)
CMYKcmyk(68.4%, 66.3%, 0%, 25.5%)
CIE-LABlab(34.69, 39.05, -66.52)
CIE-LCHlch(34.69, 77.14, 300.41°)
OKLaboklab(45.3% 0.0142 -0.1921)
OKLCHoklch(45.3% 0.193 274.2)
XYZxyz(12.9881, 8.3440, 49.6313)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40BE #BEBA3C
analogous
#3C81BE #3C40BE #793CBE
triadic
#3C40BE #BE3C40 #40BE3C
tetradic
#3C40BE #BE3C81 #BEBA3C #3CBE79
square
#3C40BE #BE3C81 #BEBA3C #3CBE79
split-complementary
#3C40BE #BE793C #81BE3C
monochromatic
#1F2161 #2D308F #3C40BE #686BCF #9699DE

Accessibility & contrast

On white

7.87
#3C40BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3C40BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40BE
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40BE#FFFFFF#000000##FFFFFF
##3C40BE1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3c40be;
/* rgb */ color: rgb(60, 64, 190);
/* oklch */ color: oklch(45.3% 0.193 274.2);
Tailwind
colors: {
  custom: {
    50: '#8375d3',
    500: '#3c40be',
    950: '#000000',
  },
}
SCSS
$custom: #3c40be;
$custom-light: #8375d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40be",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 238.154,
    "s": 52,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45304,
    "c": 0.19263,
    "h": 274.2
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#3C40BE
secondary
#CAC88C
accent
#D74CDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3C40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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