#4C40C0#4C40C0

#4C40C0 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.6% C 0.192 H 280.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#4C40C0
RGBrgb(76, 64, 192)
HSLhsl(246, 50%, 50%)
HSVhsv(246, 67%, 75%)
CMYKcmyk(60.4%, 66.7%, 0%, 24.7%)
CIE-LABlab(36.00, 41.95, -65.51)
CIE-LCHlch(36.00, 77.79, 302.64°)
OKLaboklab(46.6% 0.0338 -0.1887)
OKLCHoklch(46.6% 0.192 280.1)
XYZxyz(14.3253, 9.0080, 50.8428)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40C0 #B4C040
analogous
#4074C0 #4C40C0 #8C40C0
triadic
#4C40C0 #C04C40 #40C04C
tetradic
#4C40C0 #C04074 #B4C040 #40C08C
square
#4C40C0 #C04074 #B4C040 #40C08C
split-complementary
#4C40C0 #C08C40 #74C040
monochromatic
#272164 #3A3092 #4C40C0 #776ECF #A29CDE

Accessibility & contrast

On white

7.50
#4C40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4C40C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40C0
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40C0#FFFFFF#000000##FFFFFF
##4C40C01.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#0050BE
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4c40c0;
/* rgb */ color: rgb(76, 64, 192);
/* oklch */ color: oklch(46.6% 0.192 280.1);
Tailwind
colors: {
  custom: {
    50: '#8a76d4',
    500: '#4c40c0',
    950: '#000000',
  },
}
SCSS
$custom: #4c40c0;
$custom-light: #8a76d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40c0",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 245.625,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.466,
    "c": 0.19168,
    "h": 280.1
  },
  "luminance": 0.09009
}

Semantic roles & 50–950 ramp

primary
#4C40C0
secondary
#C5CB91
accent
#DA4ECD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4C40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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