#3C40BA#3C40BA

#3C40BA is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.187 H 274.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#3C40BA
RGBrgb(60, 64, 186)
HSLhsl(238, 51%, 48%)
HSVhsv(238, 68%, 73%)
CMYKcmyk(67.7%, 65.6%, 0%, 27.1%)
CIE-LABlab(34.34, 37.68, -64.75)
CIE-LCHlch(34.34, 74.91, 300.20°)
OKLaboklab(44.94% 0.0145 -0.1869)
OKLCHoklch(44.94% 0.187 274.4)
XYZxyz(12.5569, 8.1715, 47.3604)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40BA #BAB63C
analogous
#3C7FBA #3C40BA #773CBA
triadic
#3C40BA #BA3C40 #40BA3C
tetradic
#3C40BA #BA3C7F #BAB63C #3CBA77
square
#3C40BA #BA3C7F #BAB63C #3CBA77
split-complementary
#3C40BA #BA773C #7FBA3C
monochromatic
#1E205D #2D308C #3C40BA #6669CE #9496DC

Accessibility & contrast

On white

7.97
#3C40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3C40BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40BA
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40BA#FFFFFF#000000##FFFFFF
##3C40BA1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3c40ba;
/* rgb */ color: rgb(60, 64, 186);
/* oklch */ color: oklch(44.9% 0.187 274.4);
Tailwind
colors: {
  custom: {
    50: '#8275d0',
    500: '#3c40ba',
    950: '#000000',
  },
}
SCSS
$custom: #3c40ba;
$custom-light: #8275d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40ba",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 238.095,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4494,
    "c": 0.18746,
    "h": 274.4
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3C40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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