#4A40D8#4A40D8

#4A40D8 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.222 H 277.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#4A40D8
RGBrgb(74, 64, 216)
HSLhsl(244, 66%, 55%)
HSVhsv(244, 70%, 85%)
CMYKcmyk(65.7%, 70.4%, 0%, 15.3%)
CIE-LABlab(37.98, 49.29, -76.19)
CIE-LCHlch(37.98, 90.74, 302.90°)
OKLaboklab(48.64% 0.0277 -0.22)
OKLCHoklch(48.64% 0.222 277.2)
XYZxyz(17.0481, 10.0790, 65.9995)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40D8 #CED840
analogous
#4082D8 #4A40D8 #9640D8
triadic
#4A40D8 #D84A40 #40D84A
tetradic
#4A40D8 #D84082 #CED840 #40D896
square
#4A40D8 #D84082 #CED840 #40D896
split-complementary
#4A40D8 #D89640 #82D840
monochromatic
#221B83 #2F25B6 #4A40D8 #7A73E2 #AAA6ED

Accessibility & contrast

On white

6.96
#4A40D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4A40D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A40D8
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40D8#FFFFFF#000000##FFFFFF
##4A40D81.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DD
Deuteranopia (green-blind)
#0053D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4a40d8;
/* rgb */ color: rgb(74, 64, 216);
/* oklch */ color: oklch(48.6% 0.222 277.2);
Tailwind
colors: {
  custom: {
    50: '#8e77e5',
    500: '#4a40d8',
    950: '#000000',
  },
}
SCSS
$custom: #4a40d8;
$custom-light: #8e77e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40d8",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 243.947,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.4864,
    "c": 0.22173,
    "h": 277.2
  },
  "luminance": 0.10081
}

Semantic roles & 50–950 ramp

primary
#4A40D8
secondary
#D6DA9A
accent
#E93FDE
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4A40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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