#4C40C8#4C40C8

#4C40C8 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.3% C 0.202 H 279.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#4C40C8
RGBrgb(76, 64, 200)
HSLhsl(245, 55%, 52%)
HSVhsv(245, 68%, 78%)
CMYKcmyk(62%, 68%, 0%, 21.6%)
CIE-LABlab(36.69, 44.49, -69.05)
CIE-LCHlch(36.69, 82.14, 302.80°)
OKLaboklab(47.31% 0.0327 -0.1991)
OKLCHoklch(47.31% 0.202 279.3)
XYZxyz(15.2359, 9.3723, 55.6385)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40C8 #BCC840
analogous
#4078C8 #4C40C8 #9040C8
triadic
#4C40C8 #C84C40 #40C84C
tetradic
#4C40C8 #C84078 #BCC840 #40C890
square
#4C40C8 #C84078 #BCC840 #40C890
split-complementary
#4C40C8 #C89040 #78C840
monochromatic
#27206E #372D9D #4C40C8 #7970D6 #A59FE3

Accessibility & contrast

On white

7.31
#4C40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4C40C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40C8
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40C8#FFFFFF#000000##FFFFFF
##4C40C81.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4c40c8;
/* rgb */ color: rgb(76, 64, 200);
/* oklch */ color: oklch(47.3% 0.202 279.3);
Tailwind
colors: {
  custom: {
    50: '#8c76da',
    500: '#4c40c8',
    950: '#000000',
  },
}
SCSS
$custom: #4c40c8;
$custom-light: #8c76da;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40c8",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 245.294,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47312,
    "c": 0.20173,
    "h": 279.3
  },
  "luminance": 0.09373
}

Semantic roles & 50–950 ramp

primary
#4C40C8
secondary
#CAD094
accent
#DF49D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4C40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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