#4C40BA#4C40BA

#4C40BA is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.1% C 0.184 H 280.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#4C40BA
RGBrgb(76, 64, 186)
HSLhsl(246, 49%, 49%)
HSVhsv(246, 66%, 73%)
CMYKcmyk(59.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(35.49, 40.04, -62.81)
CIE-LCHlch(35.49, 74.49, 302.52°)
OKLaboklab(46.08% 0.0345 -0.1808)
OKLCHoklch(46.08% 0.184 280.8)
XYZxyz(13.6740, 8.7475, 47.4127)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40BA #AEBA40
analogous
#4071BA #4C40BA #8940BA
triadic
#4C40BA #BA4C40 #40BA4C
tetradic
#4C40BA #BA4071 #AEBA40 #40BA89
square
#4C40BA #BA4071 #AEBA40 #40BA89
split-complementary
#4C40BA #BA8940 #71BA40
monochromatic
#27215F #39308C #4C40BA #756BCC #9F99DC

Accessibility & contrast

On white

7.64
#4C40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4C40BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40BA
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40BA#FFFFFF#000000##FFFFFF
##4C40BA1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4c40ba;
/* rgb */ color: rgb(76, 64, 186);
/* oklch */ color: oklch(46.1% 0.184 280.8);
Tailwind
colors: {
  custom: {
    50: '#8976d0',
    500: '#4c40ba',
    950: '#000000',
  },
}
SCSS
$custom: #4c40ba;
$custom-light: #8976d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40ba",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 245.902,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46077,
    "c": 0.18403,
    "h": 280.8
  },
  "luminance": 0.08748
}

Semantic roles & 50–950 ramp

primary
#4C40BA
secondary
#C2C88E
accent
#D84FCB
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4C40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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