#4A40D4#4A40D4

#4A40D4 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.217 H 277.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#4A40D4
RGBrgb(74, 64, 212)
HSLhsl(244, 63%, 54%)
HSVhsv(244, 70%, 83%)
CMYKcmyk(65.1%, 69.8%, 0%, 16.9%)
CIE-LABlab(37.62, 48.03, -74.49)
CIE-LCHlch(37.62, 88.63, 302.81°)
OKLaboklab(48.27% 0.0283 -0.215)
OKLCHoklch(48.27% 0.217 277.5)
XYZxyz(16.5372, 9.8747, 63.3091)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40D4 #CAD440
analogous
#4080D4 #4A40D4 #9440D4
triadic
#4A40D4 #D44A40 #40D44A
tetradic
#4A40D4 #D44080 #CAD440 #40D494
square
#4A40D4 #D44080 #CAD440 #40D494
split-complementary
#4A40D4 #D49440 #80D440
monochromatic
#231C7D #3127AF #4A40D4 #7972DF #A9A4EA

Accessibility & contrast

On white

7.06
#4A40D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4A40D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40D4
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40D4#FFFFFF#000000##FFFFFF
##4A40D41.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0052D1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4a40d4;
/* rgb */ color: rgb(74, 64, 212);
/* oklch */ color: oklch(48.3% 0.217 277.5);
Tailwind
colors: {
  custom: {
    50: '#8d76e2',
    500: '#4a40d4',
    950: '#000000',
  },
}
SCSS
$custom: #4a40d4;
$custom-light: #8d76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40d4",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 244.054,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48266,
    "c": 0.21689,
    "h": 277.5
  },
  "luminance": 0.09876
}

Semantic roles & 50–950 ramp

primary
#4A40D4
secondary
#D3D798
accent
#E642DB
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4A40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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