#4C40D1#4C40D1

#4C40D1 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.213 H 278.5°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#4C40D1
RGBrgb(76, 64, 209)
HSLhsl(245, 61%, 54%)
HSVhsv(245, 69%, 82%)
CMYKcmyk(63.6%, 69.4%, 0%, 18%)
CIE-LABlab(37.49, 47.33, -72.96)
CIE-LCHlch(37.49, 86.97, 302.98°)
OKLaboklab(48.13% 0.0313 -0.2105)
OKLCHoklch(48.13% 0.213 278.5)
XYZxyz(16.3188, 9.8054, 61.3419)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40D1 #C5D140
analogous
#407CD1 #4C40D1 #9540D1
triadic
#4C40D1 #D14C40 #40D14C
tetradic
#4C40D1 #D1407C #C5D140 #40D195
square
#4C40D1 #D1407C #C5D140 #40D195
split-complementary
#4C40D1 #D19540 #7CD140
monochromatic
#251D79 #3429AB #4C40D1 #7A71DD #A8A3E9

Accessibility & contrast

On white

7.09
#4C40D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4C40D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40D1
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40D1#FFFFFF#000000##FFFFFF
##4C40D11.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0052CE
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4c40d1;
/* rgb */ color: rgb(76, 64, 209);
/* oklch */ color: oklch(48.1% 0.213 278.5);
Tailwind
colors: {
  custom: {
    50: '#8e76e0',
    500: '#4c40d1',
    950: '#000000',
  },
}
SCSS
$custom: #4c40d1;
$custom-light: #8e76e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40d1",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 244.966,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48131,
    "c": 0.21283,
    "h": 278.5
  },
  "luminance": 0.09807
}

Semantic roles & 50–950 ramp

primary
#4C40D1
secondary
#D0D597
accent
#E444D7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4C40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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