#4A40D2#4A40D2

#4A40D2 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.214 H 277.7°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4A40D2
RGBrgb(74, 64, 210)
HSLhsl(244, 62%, 54%)
HSVhsv(244, 70%, 82%)
CMYKcmyk(64.8%, 69.5%, 0%, 17.6%)
CIE-LABlab(37.43, 47.39, -73.63)
CIE-LCHlch(37.43, 87.57, 302.77°)
OKLaboklab(48.08% 0.0286 -0.2125)
OKLCHoklch(48.08% 0.214 277.7)
XYZxyz(16.2865, 9.7744, 61.9887)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40D2 #C8D240
analogous
#407FD2 #4A40D2 #9340D2
triadic
#4A40D2 #D24A40 #40D24A
tetradic
#4A40D2 #D2407F #C8D240 #40D293
square
#4A40D2 #D2407F #C8D240 #40D293
split-complementary
#4A40D2 #D29340 #7FD240
monochromatic
#231D7B #3229AC #4A40D2 #7972DE #A8A3E9

Accessibility & contrast

On white

7.11
#4A40D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4A40D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40D2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40D2#FFFFFF#000000##FFFFFF
##4A40D21.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.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: #4a40d2;
/* rgb */ color: rgb(74, 64, 210);
/* oklch */ color: oklch(48.1% 0.214 277.7);
Tailwind
colors: {
  custom: {
    50: '#8d76e1',
    500: '#4a40d2',
    950: '#000000',
  },
}
SCSS
$custom: #4a40d2;
$custom-light: #8d76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40d2",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 244.11,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.4808,
    "c": 0.21446,
    "h": 277.7
  },
  "luminance": 0.09776
}

Semantic roles & 50–950 ramp

primary
#4A40D2
secondary
#D2D698
accent
#E543DA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4A40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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