#4A40C4#4A40C4

#4A40C4 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.8% C 0.197 H 278.9°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#4A40C4
RGBrgb(74, 64, 196)
HSLhsl(245, 53%, 51%)
HSVhsv(245, 67%, 77%)
CMYKcmyk(62.2%, 67.3%, 0%, 23.1%)
CIE-LABlab(36.19, 42.93, -67.54)
CIE-LCHlch(36.19, 80.03, 302.44°)
OKLaboklab(46.8% 0.0307 -0.1947)
OKLCHoklch(46.8% 0.197 278.9)
XYZxyz(14.6181, 9.1070, 53.2014)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40C4 #BAC440
analogous
#4078C4 #4A40C4 #8C40C4
triadic
#4A40C4 #C44A40 #40C44A
tetradic
#4A40C4 #C44078 #BAC440 #40C48C
square
#4A40C4 #C44078 #BAC440 #40C48C
split-complementary
#4A40C4 #C48C40 #78C440
monochromatic
#262069 #372F98 #4A40C4 #766FD2 #A39EE1

Accessibility & contrast

On white

7.44
#4A40C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4A40C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40C4
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40C4#FFFFFF#000000##FFFFFF
##4A40C41.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4a40c4;
/* rgb */ color: rgb(74, 64, 196);
/* oklch */ color: oklch(46.8% 0.197 278.9);
Tailwind
colors: {
  custom: {
    50: '#8a76d7',
    500: '#4a40c4',
    950: '#000000',
  },
}
SCSS
$custom: #4a40c4;
$custom-light: #8a76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40c4",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 244.545,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46804,
    "c": 0.19711,
    "h": 278.9
  },
  "luminance": 0.09108
}

Semantic roles & 50–950 ramp

primary
#4A40C4
secondary
#C9CD93
accent
#DC4CD1
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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