#3C40B6#3C40B6

#3C40B6 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.182 H 274.7°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#3C40B6
RGBrgb(60, 64, 182)
HSLhsl(238, 50%, 47%)
HSVhsv(238, 67%, 71%)
CMYKcmyk(67%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.99, 36.31, -62.95)
CIE-LCHlch(33.99, 72.67, 299.98°)
OKLaboklab(44.58% 0.0149 -0.1816)
OKLCHoklch(44.58% 0.182 274.7)
XYZxyz(12.1376, 8.0038, 45.1521)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40B6 #B6B23C
analogous
#3C7DB6 #3C40B6 #753CB6
triadic
#3C40B6 #B63C40 #40B63C
tetradic
#3C40B6 #B63C7D #B6B23C #3CB675
square
#3C40B6 #B63C7D #B6B23C #3CB675
split-complementary
#3C40B6 #B6753C #7DB63C
monochromatic
#1E205A #2D3088 #3C40B6 #6367CC #9194DB

Accessibility & contrast

On white

8.07
#3C40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3C40B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40B6
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40B6#FFFFFF#000000##FFFFFF
##3C40B61.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3c40b6;
/* rgb */ color: rgb(60, 64, 182);
/* oklch */ color: oklch(44.6% 0.182 274.7);
Tailwind
colors: {
  custom: {
    50: '#8175cd',
    500: '#3c40b6',
    950: '#000000',
  },
}
SCSS
$custom: #3c40b6;
$custom-light: #8175cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40b6",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 238.033,
    "s": 50.413,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4458,
    "c": 0.18225,
    "h": 274.7
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#3C40B6
secondary
#C6C488
accent
#D54EDA
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3C40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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