#4A40DF#4A40DF

#4A40DF is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.3% C 0.230 H 276.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#4A40DF
RGBrgb(74, 64, 223)
HSLhsl(244, 71%, 56%)
HSVhsv(244, 71%, 87%)
CMYKcmyk(66.8%, 71.3%, 0%, 12.5%)
CIE-LABlab(38.64, 51.48, -79.12)
CIE-LCHlch(38.64, 94.40, 303.05°)
OKLaboklab(49.3% 0.0265 -0.2286)
OKLCHoklch(49.3% 0.23 276.6)
XYZxyz(17.9724, 10.4488, 70.8674)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40DF #D5DF40
analogous
#4086DF #4A40DF #9A40DF
triadic
#4A40DF #DF4A40 #40DF4A
tetradic
#4A40DF #DF4086 #D5DF40 #40DF9A
square
#4A40DF #DF4086 #D5DF40 #40DF9A
split-complementary
#4A40DF #DF9A40 #86DF40
monochromatic
#1F188D #2B20C1 #4A40DF #7C74E8 #ADA9F1

Accessibility & contrast

On white

6.80
#4A40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4A40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A40DF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40DF#FFFFFF#000000##FFFFFF
##4A40DF1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E4
Deuteranopia (green-blind)
#0054DC
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4a40df;
/* rgb */ color: rgb(74, 64, 223);
/* oklch */ color: oklch(49.3% 0.230 276.6);
Tailwind
colors: {
  custom: {
    50: '#8f77ea',
    500: '#4a40df',
    950: '#000000',
  },
}
SCSS
$custom: #4a40df;
$custom-light: #8f77ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40df",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 243.774,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.49303,
    "c": 0.23012,
    "h": 276.6
  },
  "luminance": 0.1045
}

Semantic roles & 50–950 ramp

primary
#4A40DF
secondary
#DADE9D
accent
#EE3AE3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4A40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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