#4A40EA#4A40EA

#4A40EA is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.4% C 0.243 H 275.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#4A40EA
RGBrgb(74, 64, 234)
HSLhsl(244, 80%, 58%)
HSVhsv(244, 73%, 92%)
CMYKcmyk(68.4%, 72.6%, 0%, 8.2%)
CIE-LABlab(39.68, 54.90, -83.66)
CIE-LCHlch(39.68, 100.06, 303.27°)
OKLaboklab(50.36% 0.0245 -0.2418)
OKLCHoklch(50.36% 0.243 275.8)
XYZxyz(19.5038, 11.0613, 78.9332)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40EA #E0EA40
analogous
#408BEA #4A40EA #9F40EA
triadic
#4A40EA #EA4A40 #40EA4A
tetradic
#4A40EA #EA408B #E0EA40 #40EA9F
square
#4A40EA #EA408B #E0EA40 #40EA9F
split-complementary
#4A40EA #EA9F40 #8BEA40
monochromatic
#1A119E #2317D5 #4A40EA #7E77F0 #B2AEF6

Accessibility & contrast

On white

6.54
#4A40EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4A40EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A40EA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40EA#FFFFFF#000000##FFFFFF
##4A40EA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065EF
Deuteranopia (green-blind)
#0056E7
Tritanopia (blue-blind)
#007192
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4a40ea;
/* rgb */ color: rgb(74, 64, 234);
/* oklch */ color: oklch(50.4% 0.243 275.8);
Tailwind
colors: {
  custom: {
    50: '#9277f2',
    500: '#4a40ea',
    950: '#000000',
  },
}
SCSS
$custom: #4a40ea;
$custom-light: #9277f2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40ea",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 234
  },
  "hsl": {
    "h": 243.529,
    "s": 80.189,
    "l": 58.431
  },
  "oklch": {
    "l": 0.50362,
    "c": 0.24304,
    "h": 275.8
  },
  "luminance": 0.11063
}

Semantic roles & 50–950 ramp

primary
#4A40EA
secondary
#E1E5A1
accent
#F731EB
background
#F9F7FF
surface
#F2EDFE
border
#CCC8D6
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #4A40EA

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

Preview Lab → · Contrast checker → · Palette generator →

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