#4A40D1#4A40D1

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

Color values

HEX#4A40D1
RGBrgb(74, 64, 209)
HSLhsl(244, 61%, 54%)
HSVhsv(244, 69%, 82%)
CMYKcmyk(64.6%, 69.4%, 0%, 18%)
CIE-LABlab(37.34, 47.08, -73.20)
CIE-LCHlch(37.34, 87.03, 302.75°)
OKLaboklab(47.99% 0.0288 -0.2113)
OKLCHoklch(47.99% 0.213 277.8)
XYZxyz(16.1623, 9.7247, 61.3346)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40D1 #C7D140
analogous
#407ED1 #4A40D1 #9240D1
triadic
#4A40D1 #D14A40 #40D14A
tetradic
#4A40D1 #D1407E #C7D140 #40D192
square
#4A40D1 #D1407E #C7D140 #40D192
split-complementary
#4A40D1 #D19240 #7ED140
monochromatic
#241D79 #3229AB #4A40D1 #7971DD #A7A3E9

Accessibility & contrast

On white

7.13
#4A40D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4A40D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40D1
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40D1#FFFFFF#000000##FFFFFF
##4A40D11.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.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: #4a40d1;
/* rgb */ color: rgb(74, 64, 209);
/* oklch */ color: oklch(48.0% 0.213 277.8);
Tailwind
colors: {
  custom: {
    50: '#8d76e0',
    500: '#4a40d1',
    950: '#000000',
  },
}
SCSS
$custom: #4a40d1;
$custom-light: #8d76e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40d1",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 244.138,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47987,
    "c": 0.21323,
    "h": 277.8
  },
  "luminance": 0.09726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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