#4C40D3#4C40D3

#4C40D3 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.215 H 278.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#4C40D3
RGBrgb(76, 64, 211)
HSLhsl(245, 63%, 54%)
HSVhsv(245, 70%, 83%)
CMYKcmyk(64%, 69.7%, 0%, 17.3%)
CIE-LABlab(37.67, 47.96, -73.81)
CIE-LCHlch(37.67, 88.03, 303.02°)
OKLaboklab(48.32% 0.031 -0.213)
OKLCHoklch(48.32% 0.215 278.3)
XYZxyz(16.5680, 9.9051, 62.6542)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40D3 #C7D340
analogous
#407ED3 #4C40D3 #9640D3
triadic
#4C40D3 #D34C40 #40D34C
tetradic
#4C40D3 #D3407E #C7D340 #40D396
square
#4C40D3 #D3407E #C7D340 #40D396
split-complementary
#4C40D3 #D39640 #7ED340
monochromatic
#241D7C #3328AE #4C40D3 #7B72DE #A9A3EA

Accessibility & contrast

On white

7.04
#4C40D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4C40D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40D3
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40D3#FFFFFF#000000##FFFFFF
##4C40D31.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0053D0
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4c40d3;
/* rgb */ color: rgb(76, 64, 211);
/* oklch */ color: oklch(48.3% 0.215 278.3);
Tailwind
colors: {
  custom: {
    50: '#8e76e2',
    500: '#4c40d3',
    950: '#000000',
  },
}
SCSS
$custom: #4c40d3;
$custom-light: #8e76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40d3",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 244.898,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48315,
    "c": 0.21526,
    "h": 278.3
  },
  "luminance": 0.09906
}

Semantic roles & 50–950 ramp

primary
#4C40D3
secondary
#D2D798
accent
#E642D8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #4C40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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