#4C40CA#4C40CA

#4C40CA is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.204 H 279.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#4C40CA
RGBrgb(76, 64, 202)
HSLhsl(245, 57%, 52%)
HSVhsv(245, 68%, 79%)
CMYKcmyk(62.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(36.87, 45.13, -69.92)
CIE-LCHlch(36.87, 83.22, 302.84°)
OKLaboklab(47.49% 0.0324 -0.2016)
OKLCHoklch(47.49% 0.204 279.1)
XYZxyz(15.4712, 9.4664, 56.8776)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40CA #BECA40
analogous
#4079CA #4C40CA #9140CA
triadic
#4C40CA #CA4C40 #40CA4C
tetradic
#4C40CA #CA4079 #BECA40 #40CA91
square
#4C40CA #CA4079 #BECA40 #40CA91
split-complementary
#4C40CA #CA9140 #79CA40
monochromatic
#261F70 #372CA0 #4C40CA #7970D7 #A6A0E5

Accessibility & contrast

On white

7.26
#4C40CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4C40CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40CA
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40CA#FFFFFF#000000##FFFFFF
##4C40CA1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c40ca;
/* rgb */ color: rgb(76, 64, 202);
/* oklch */ color: oklch(47.5% 0.204 279.1);
Tailwind
colors: {
  custom: {
    50: '#8c76db',
    500: '#4c40ca',
    950: '#000000',
  },
}
SCSS
$custom: #4c40ca;
$custom-light: #8c76db;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40ca",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 245.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47492,
    "c": 0.20422,
    "h": 279.1
  },
  "luminance": 0.09468
}

Semantic roles & 50–950 ramp

primary
#4C40CA
secondary
#CCD195
accent
#E048D3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4C40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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