#4C40C6#4C40C6

#4C40C6 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.1% C 0.199 H 279.5°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#4C40C6
RGBrgb(76, 64, 198)
HSLhsl(245, 54%, 51%)
HSVhsv(245, 68%, 78%)
CMYKcmyk(61.6%, 67.7%, 0%, 22.4%)
CIE-LABlab(36.52, 43.86, -68.17)
CIE-LCHlch(36.52, 81.06, 302.76°)
OKLaboklab(47.13% 0.033 -0.1965)
OKLCHoklch(47.13% 0.199 279.5)
XYZxyz(15.0037, 9.2794, 54.4156)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40C6 #BAC640
analogous
#4077C6 #4C40C6 #8F40C6
triadic
#4C40C6 #C64C40 #40C64C
tetradic
#4C40C6 #C64077 #BAC640 #40C68F
square
#4C40C6 #C64077 #BAC640 #40C68F
split-complementary
#4C40C6 #C68F40 #77C640
monochromatic
#27206C #382E9B #4C40C6 #786FD4 #A49EE2

Accessibility & contrast

On white

7.35
#4C40C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4C40C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40C6
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40C6#FFFFFF#000000##FFFFFF
##4C40C61.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0051C3
Tritanopia (blue-blind)
#00637E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4c40c6;
/* rgb */ color: rgb(76, 64, 198);
/* oklch */ color: oklch(47.1% 0.199 279.5);
Tailwind
colors: {
  custom: {
    50: '#8c76d8',
    500: '#4c40c6',
    950: '#000000',
  },
}
SCSS
$custom: #4c40c6;
$custom-light: #8c76d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40c6",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 245.373,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47132,
    "c": 0.19924,
    "h": 279.5
  },
  "luminance": 0.09281
}

Semantic roles & 50–950 ramp

primary
#4C40C6
secondary
#C9CE93
accent
#DD4AD0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4C40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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