#4A40D0#4A40D0

#4A40D0 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.212 H 277.8°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#4A40D0
RGBrgb(74, 64, 208)
HSLhsl(244, 61%, 53%)
HSVhsv(244, 69%, 82%)
CMYKcmyk(64.4%, 69.2%, 0%, 18.4%)
CIE-LABlab(37.25, 46.76, -72.77)
CIE-LCHlch(37.25, 86.50, 302.72°)
OKLaboklab(47.9% 0.0289 -0.21)
OKLCHoklch(47.9% 0.212 277.8)
XYZxyz(16.0389, 9.6754, 60.6846)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40D0 #C6D040
analogous
#407ED0 #4A40D0 #9240D0
triadic
#4A40D0 #D04A40 #40D04A
tetradic
#4A40D0 #D0407E #C6D040 #40D092
square
#4A40D0 #D0407E #C6D040 #40D092
split-complementary
#4A40D0 #D09240 #7ED040
monochromatic
#241E78 #322AA9 #4A40D0 #7971DC #A7A2E8

Accessibility & contrast

On white

7.15
#4A40D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4A40D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40D0
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40D0#FFFFFF#000000##FFFFFF
##4A40D01.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED4
Deuteranopia (green-blind)
#0052CD
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4a40d0;
/* rgb */ color: rgb(74, 64, 208);
/* oklch */ color: oklch(47.9% 0.212 277.8);
Tailwind
colors: {
  custom: {
    50: '#8c76e0',
    500: '#4a40d0',
    950: '#000000',
  },
}
SCSS
$custom: #4a40d0;
$custom-light: #8c76e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40d0",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 244.167,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.47895,
    "c": 0.21201,
    "h": 277.8
  },
  "luminance": 0.09677
}

Semantic roles & 50–950 ramp

primary
#4A40D0
secondary
#D1D597
accent
#E444D9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4A40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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