#4A40CA#4A40CA

#4A40CA is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.3% C 0.205 H 278.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#4A40CA
RGBrgb(74, 64, 202)
HSLhsl(244, 57%, 52%)
HSVhsv(244, 68%, 79%)
CMYKcmyk(63.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(36.72, 44.85, -70.18)
CIE-LCHlch(36.72, 83.28, 302.58°)
OKLaboklab(47.35% 0.0298 -0.2024)
OKLCHoklch(47.35% 0.205 278.4)
XYZxyz(15.3147, 9.3857, 56.8702)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40CA #C0CA40
analogous
#407BCA #4A40CA #8F40CA
triadic
#4A40CA #CA4A40 #40CA4A
tetradic
#4A40CA #CA407B #C0CA40 #40CA8F
square
#4A40CA #CA407B #C0CA40 #40CA8F
split-complementary
#4A40CA #CA8F40 #7BCA40
monochromatic
#251F70 #352CA0 #4A40CA #7770D7 #A5A0E5

Accessibility & contrast

On white

7.30
#4A40CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4A40CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40CA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40CA#FFFFFF#000000##FFFFFF
##4A40CA1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4a40ca;
/* rgb */ color: rgb(74, 64, 202);
/* oklch */ color: oklch(47.3% 0.205 278.4);
Tailwind
colors: {
  custom: {
    50: '#8b76db',
    500: '#4a40ca',
    950: '#000000',
  },
}
SCSS
$custom: #4a40ca;
$custom-light: #8b76db;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40ca",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 244.348,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47345,
    "c": 0.20461,
    "h": 278.4
  },
  "luminance": 0.09387
}

Semantic roles & 50–950 ramp

primary
#4A40CA
secondary
#CDD195
accent
#E048D5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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