#3C40C4#3C40C4

#3C40C4 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 45.9% C 0.200 H 273.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#3C40C4
RGBrgb(60, 64, 196)
HSLhsl(238, 54%, 50%)
HSVhsv(238, 69%, 77%)
CMYKcmyk(69.4%, 67.3%, 0%, 23.1%)
CIE-LABlab(35.23, 41.09, -69.16)
CIE-LCHlch(35.23, 80.44, 300.71°)
OKLaboklab(45.86% 0.0136 -0.1998)
OKLCHoklch(45.86% 0.2 273.9)
XYZxyz(13.6574, 8.6117, 53.1563)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C40C4 #C4C03C
analogous
#3C84C4 #3C40C4 #7C3CC4
triadic
#3C40C4 #C43C40 #40C43C
tetradic
#3C40C4 #C43C84 #C4C03C #3CC47C
square
#3C40C4 #C43C84 #C4C03C #3CC47C
split-complementary
#3C40C4 #C47C3C #84C43C
monochromatic
#1F2167 #2D3096 #3C40C4 #6B6ED2 #9A9CE0

Accessibility & contrast

On white

7.71
#3C40C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3C40C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C40C4
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C40C4#FFFFFF#000000##FFFFFF
##3C40C41.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3c40c4;
/* rgb */ color: rgb(60, 64, 196);
/* oklch */ color: oklch(45.9% 0.200 273.9);
Tailwind
colors: {
  custom: {
    50: '#8475d7',
    500: '#3c40c4',
    950: '#000000',
  },
}
SCSS
$custom: #3c40c4;
$custom-light: #8475d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c40c4",
  "rgb": {
    "r": 60,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 238.235,
    "s": 53.543,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.20029,
    "h": 273.9
  },
  "luminance": 0.08613
}

Semantic roles & 50–950 ramp

primary
#3C40C4
secondary
#CCCB90
accent
#D94BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3C40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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