#4A40E2#4A40E2

#4A40E2 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.6% C 0.234 H 276.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#4A40E2
RGBrgb(74, 64, 226)
HSLhsl(244, 74%, 57%)
HSVhsv(244, 72%, 89%)
CMYKcmyk(67.3%, 71.7%, 0%, 11.4%)
CIE-LABlab(38.92, 52.42, -80.37)
CIE-LCHlch(38.92, 95.95, 303.11°)
OKLaboklab(49.59% 0.0259 -0.2322)
OKLCHoklch(49.59% 0.234 276.4)
XYZxyz(18.3804, 10.6120, 73.0164)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40E2 #D8E240
analogous
#4087E2 #4A40E2 #9B40E2
triadic
#4A40E2 #E24A40 #40E24A
tetradic
#4A40E2 #E24087 #D8E240 #40E29B
square
#4A40E2 #E24087 #D8E240 #40E29B
split-complementary
#4A40E2 #E29B40 #87E240
monochromatic
#1E1692 #291EC7 #4A40E2 #7C75EA #AFAAF2

Accessibility & contrast

On white

6.72
#4A40E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4A40E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A40E2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40E2#FFFFFF#000000##FFFFFF
##4A40E21.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0054DF
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4a40e2;
/* rgb */ color: rgb(74, 64, 226);
/* oklch */ color: oklch(49.6% 0.234 276.4);
Tailwind
colors: {
  custom: {
    50: '#9077ec',
    500: '#4a40e2',
    950: '#000000',
  },
}
SCSS
$custom: #4a40e2;
$custom-light: #9077ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40e2",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 243.704,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.4959,
    "c": 0.23366,
    "h": 276.4
  },
  "luminance": 0.10614
}

Semantic roles & 50–950 ramp

primary
#4A40E2
secondary
#DCE09E
accent
#F038E5
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4A40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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