#4C40CB#4C40CB

#4C40CB is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.205 H 279.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#4C40CB
RGBrgb(76, 64, 203)
HSLhsl(245, 57%, 52%)
HSVhsv(245, 68%, 80%)
CMYKcmyk(62.6%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.96, 45.44, -70.36)
CIE-LCHlch(36.96, 83.76, 302.86°)
OKLaboklab(47.58% 0.0323 -0.2029)
OKLCHoklch(47.58% 0.205 279)
XYZxyz(15.5899, 9.5139, 57.5032)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40CB #BFCB40
analogous
#4079CB #4C40CB #9240CB
triadic
#4C40CB #CB4C40 #40CB4C
tetradic
#4C40CB #CB4079 #BFCB40 #40CB92
square
#4C40CB #CB4079 #BFCB40 #40CB92
split-complementary
#4C40CB #CB9240 #79CB40
monochromatic
#261F72 #362CA2 #4C40CB #7970D8 #A6A0E5

Accessibility & contrast

On white

7.23
#4C40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4C40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40CB
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40CB#FFFFFF#000000##FFFFFF
##4C40CB1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c40cb;
/* rgb */ color: rgb(76, 64, 203);
/* oklch */ color: oklch(47.6% 0.205 279.0);
Tailwind
colors: {
  custom: {
    50: '#8c76dc',
    500: '#4c40cb',
    950: '#000000',
  },
}
SCSS
$custom: #4c40cb;
$custom-light: #8c76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40cb",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 245.18,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47583,
    "c": 0.20546,
    "h": 279
  },
  "luminance": 0.09515
}

Semantic roles & 50–950 ramp

primary
#4C40CB
secondary
#CCD295
accent
#E047D3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4C40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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