#4C40D2#4C40D2

#4C40D2 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.214 H 278.4°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4C40D2
RGBrgb(76, 64, 210)
HSLhsl(245, 62%, 54%)
HSVhsv(245, 70%, 82%)
CMYKcmyk(63.8%, 69.5%, 0%, 17.6%)
CIE-LABlab(37.58, 47.65, -73.39)
CIE-LCHlch(37.58, 87.50, 303.00°)
OKLaboklab(48.22% 0.0312 -0.2118)
OKLCHoklch(48.22% 0.214 278.4)
XYZxyz(16.4430, 9.8551, 61.9960)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40D2 #C6D240
analogous
#407DD2 #4C40D2 #9540D2
triadic
#4C40D2 #D24C40 #40D24C
tetradic
#4C40D2 #D2407D #C6D240 #40D295
square
#4C40D2 #D2407D #C6D240 #40D295
split-complementary
#4C40D2 #D29540 #7DD240
monochromatic
#251D7B #3329AC #4C40D2 #7A72DE #A9A3E9

Accessibility & contrast

On white

7.07
#4C40D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4C40D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40D2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40D2#FFFFFF#000000##FFFFFF
##4C40D21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0052CF
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4c40d2;
/* rgb */ color: rgb(76, 64, 210);
/* oklch */ color: oklch(48.2% 0.214 278.4);
Tailwind
colors: {
  custom: {
    50: '#8e76e1',
    500: '#4c40d2',
    950: '#000000',
  },
}
SCSS
$custom: #4c40d2;
$custom-light: #8e76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40d2",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 244.932,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48223,
    "c": 0.21404,
    "h": 278.4
  },
  "luminance": 0.09856
}

Semantic roles & 50–950 ramp

primary
#4C40D2
secondary
#D1D698
accent
#E543D8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4C40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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