#4A40D7#4A40D7

#4A40D7 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.221 H 277.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#4A40D7
RGBrgb(74, 64, 215)
HSLhsl(244, 65%, 55%)
HSVhsv(244, 70%, 84%)
CMYKcmyk(65.6%, 70.2%, 0%, 15.7%)
CIE-LABlab(37.89, 48.97, -75.76)
CIE-LCHlch(37.89, 90.21, 302.88°)
OKLaboklab(48.55% 0.0278 -0.2188)
OKLCHoklch(48.55% 0.221 277.2)
XYZxyz(16.9192, 10.0275, 65.3207)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40D7 #CDD740
analogous
#4081D7 #4A40D7 #9640D7
triadic
#4A40D7 #D74A40 #40D74A
tetradic
#4A40D7 #D74081 #CDD740 #40D796
square
#4A40D7 #D74081 #CDD740 #40D796
split-complementary
#4A40D7 #D79640 #81D740
monochromatic
#221B81 #2F26B4 #4A40D7 #7A73E2 #AAA5EC

Accessibility & contrast

On white

6.99
#4A40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4A40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A40D7
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40D7#FFFFFF#000000##FFFFFF
##4A40D71.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#0053D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4a40d7;
/* rgb */ color: rgb(74, 64, 215);
/* oklch */ color: oklch(48.5% 0.221 277.2);
Tailwind
colors: {
  custom: {
    50: '#8e76e5',
    500: '#4a40d7',
    950: '#000000',
  },
}
SCSS
$custom: #4a40d7;
$custom-light: #8e76e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40d7",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 243.974,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48546,
    "c": 0.22053,
    "h": 277.2
  },
  "luminance": 0.10029
}

Semantic roles & 50–950 ramp

primary
#4A40D7
secondary
#D5D99A
accent
#E83FDD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4A40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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