#4C40DB#4C40DB

#4C40DB is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.1% C 0.225 H 277.6°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#4C40DB
RGBrgb(76, 64, 219)
HSLhsl(245, 68%, 55%)
HSVhsv(245, 71%, 86%)
CMYKcmyk(65.3%, 70.8%, 0%, 14.1%)
CIE-LABlab(38.40, 50.47, -77.21)
CIE-LCHlch(38.40, 92.24, 303.17°)
OKLaboklab(49.06% 0.0297 -0.2229)
OKLCHoklch(49.06% 0.225 277.6)
XYZxyz(17.5959, 10.3163, 68.0681)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40DB #CFDB40
analogous
#4081DB #4C40DB #9940DB
triadic
#4C40DB #DB4C40 #40DB4C
tetradic
#4C40DB #DB4081 #CFDB40 #40DB99
square
#4C40DB #DB4081 #CFDB40 #40DB99
split-complementary
#4C40DB #DB9940 #81DB40
monochromatic
#221987 #2F23BB #4C40DB #7C73E5 #ADA7EE

Accessibility & contrast

On white

6.85
#4C40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#4C40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C40DB
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40DB#FFFFFF#000000##FFFFFF
##4C40DB1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E0
Deuteranopia (green-blind)
#0054D8
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4c40db;
/* rgb */ color: rgb(76, 64, 219);
/* oklch */ color: oklch(49.1% 0.225 277.6);
Tailwind
colors: {
  custom: {
    50: '#8f77e7',
    500: '#4c40db',
    950: '#000000',
  },
}
SCSS
$custom: #4c40db;
$custom-light: #8f77e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40db",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 244.645,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49061,
    "c": 0.22491,
    "h": 277.6
  },
  "luminance": 0.10318
}

Semantic roles & 50–950 ramp

primary
#4C40DB
secondary
#D7DC9B
accent
#EB3DDE
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4C40DB

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

Preview Lab → · Contrast checker → · Palette generator →

#4C40DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva