#4C40BB#4C40BB

#4C40BB is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.2% C 0.185 H 280.7°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#4C40BB
RGBrgb(76, 64, 187)
HSLhsl(246, 49%, 49%)
HSVhsv(246, 66%, 73%)
CMYKcmyk(59.4%, 65.8%, 0%, 26.7%)
CIE-LABlab(35.58, 40.36, -63.26)
CIE-LCHlch(35.58, 75.04, 302.54°)
OKLaboklab(46.16% 0.0344 -0.1821)
OKLCHoklch(46.16% 0.185 280.7)
XYZxyz(13.7807, 8.7902, 47.9746)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40BB #AFBB40
analogous
#4072BB #4C40BB #8A40BB
triadic
#4C40BB #BB4C40 #40BB4C
tetradic
#4C40BB #BB4072 #AFBB40 #40BB8A
square
#4C40BB #BB4072 #AFBB40 #40BB8A
split-complementary
#4C40BB #BB8A40 #72BB40
monochromatic
#272160 #39308D #4C40BB #756CCD #A099DC

Accessibility & contrast

On white

7.61
#4C40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4C40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40BB
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40BB#FFFFFF#000000##FFFFFF
##4C40BB1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#005F78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4c40bb;
/* rgb */ color: rgb(76, 64, 187);
/* oklch */ color: oklch(46.2% 0.185 280.7);
Tailwind
colors: {
  custom: {
    50: '#8a76d0',
    500: '#4c40bb',
    950: '#000000',
  },
}
SCSS
$custom: #4c40bb;
$custom-light: #8a76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40bb",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 245.854,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46164,
    "c": 0.18531,
    "h": 280.7
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#4C40BB
secondary
#C2C88F
accent
#D94FCB
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4C40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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