#4A40C8#4A40C8

#4A40C8 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.2% C 0.202 H 278.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#4A40C8
RGBrgb(74, 64, 200)
HSLhsl(244, 55%, 52%)
HSVhsv(244, 68%, 78%)
CMYKcmyk(63%, 68%, 0%, 21.6%)
CIE-LABlab(36.54, 44.21, -69.30)
CIE-LCHlch(36.54, 82.20, 302.54°)
OKLaboklab(47.16% 0.0301 -0.1999)
OKLCHoklch(47.16% 0.202 278.6)
XYZxyz(15.0794, 9.2916, 55.6312)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40C8 #BEC840
analogous
#407AC8 #4A40C8 #8E40C8
triadic
#4A40C8 #C84A40 #40C84A
tetradic
#4A40C8 #C8407A #BEC840 #40C88E
square
#4A40C8 #C8407A #BEC840 #40C88E
split-complementary
#4A40C8 #C88E40 #7AC840
monochromatic
#25206E #362D9D #4A40C8 #7770D6 #A49FE3

Accessibility & contrast

On white

7.35
#4A40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4A40C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40C8
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40C8#FFFFFF#000000##FFFFFF
##4A40C81.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4a40c8;
/* rgb */ color: rgb(74, 64, 200);
/* oklch */ color: oklch(47.2% 0.202 278.6);
Tailwind
colors: {
  custom: {
    50: '#8b76da',
    500: '#4a40c8',
    950: '#000000',
  },
}
SCSS
$custom: #4a40c8;
$custom-light: #8b76da;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40c8",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 244.412,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47164,
    "c": 0.20213,
    "h": 278.6
  },
  "luminance": 0.09293
}

Semantic roles & 50–950 ramp

primary
#4A40C8
secondary
#CBD094
accent
#DF49D4
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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