#4C40BF#4C40BF

#4C40BF is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.190 H 280.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#4C40BF
RGBrgb(76, 64, 191)
HSLhsl(246, 50%, 50%)
HSVhsv(246, 66%, 75%)
CMYKcmyk(60.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(35.91, 41.63, -65.06)
CIE-LCHlch(35.91, 77.24, 302.62°)
OKLaboklab(46.51% 0.0339 -0.1874)
OKLCHoklch(46.51% 0.19 280.2)
XYZxyz(14.2149, 8.9639, 50.2612)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40BF #B3BF40
analogous
#4074BF #4C40BF #8B40BF
triadic
#4C40BF #BF4C40 #40BF4C
tetradic
#4C40BF #BF4074 #B3BF40 #40BF8B
square
#4C40BF #BF4074 #B3BF40 #40BF8B
split-complementary
#4C40BF #BF8B40 #74BF40
monochromatic
#282163 #3A3191 #4C40BF #776ECE #A29CDE

Accessibility & contrast

On white

7.52
#4C40BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4C40BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40BF
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40BF#FFFFFF#000000##FFFFFF
##4C40BF1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4c40bf;
/* rgb */ color: rgb(76, 64, 191);
/* oklch */ color: oklch(46.5% 0.190 280.2);
Tailwind
colors: {
  custom: {
    50: '#8a76d3',
    500: '#4c40bf',
    950: '#000000',
  },
}
SCSS
$custom: #4c40bf;
$custom-light: #8a76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40bf",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 245.669,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46512,
    "c": 0.19042,
    "h": 280.2
  },
  "luminance": 0.08965
}

Semantic roles & 50–950 ramp

primary
#4C40BF
secondary
#C4CA91
accent
#D94ECC
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4C40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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