#4A40CF#4A40CF

#4A40CF is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.211 H 277.9°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#4A40CF
RGBrgb(74, 64, 207)
HSLhsl(244, 60%, 53%)
HSVhsv(244, 69%, 81%)
CMYKcmyk(64.3%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.16, 46.44, -72.34)
CIE-LCHlch(37.16, 85.97, 302.70°)
OKLaboklab(47.8% 0.0291 -0.2088)
OKLCHoklch(47.8% 0.211 277.9)
XYZxyz(15.9163, 9.6263, 60.0387)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40CF #C5CF40
analogous
#407DCF #4A40CF #9140CF
triadic
#4A40CF #CF4A40 #40CF4A
tetradic
#4A40CF #CF407D #C5CF40 #40CF91
square
#4A40CF #CF407D #C5CF40 #40CF91
split-complementary
#4A40CF #CF9140 #7DCF40
monochromatic
#241E77 #332AA8 #4A40CF #7871DB #A7A2E8

Accessibility & contrast

On white

7.18
#4A40CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4A40CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40CF
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40CF#FFFFFF#000000##FFFFFF
##4A40CF1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4a40cf;
/* rgb */ color: rgb(74, 64, 207);
/* oklch */ color: oklch(47.8% 0.211 277.9);
Tailwind
colors: {
  custom: {
    50: '#8c76df',
    500: '#4a40cf',
    950: '#000000',
  },
}
SCSS
$custom: #4a40cf;
$custom-light: #8c76df;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40cf",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 244.196,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47803,
    "c": 0.21079,
    "h": 277.9
  },
  "luminance": 0.09628
}

Semantic roles & 50–950 ramp

primary
#4A40CF
secondary
#D0D497
accent
#E345D8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4A40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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