#4C40DF#4C40DF

#4C40DF is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.4% C 0.230 H 277.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#4C40DF
RGBrgb(76, 64, 223)
HSLhsl(245, 71%, 56%)
HSVhsv(245, 71%, 87%)
CMYKcmyk(65.9%, 71.3%, 0%, 12.5%)
CIE-LABlab(38.78, 51.71, -78.89)
CIE-LCHlch(38.78, 94.33, 303.24°)
OKLaboklab(49.44% 0.029 -0.2278)
OKLCHoklch(49.44% 0.23 277.2)
XYZxyz(18.1288, 10.5294, 70.8747)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40DF #D3DF40
analogous
#4084DF #4C40DF #9C40DF
triadic
#4C40DF #DF4C40 #40DF4C
tetradic
#4C40DF #DF4084 #D3DF40 #40DF9C
square
#4C40DF #DF4084 #D3DF40 #40DF9C
split-complementary
#4C40DF #DF9C40 #84DF40
monochromatic
#20188D #2D20C1 #4C40DF #7D74E8 #AEA9F1

Accessibility & contrast

On white

6.76
#4C40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4C40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C40DF
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40DF#FFFFFF#000000##FFFFFF
##4C40DF1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E4
Deuteranopia (green-blind)
#0054DC
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4c40df;
/* rgb */ color: rgb(76, 64, 223);
/* oklch */ color: oklch(49.4% 0.230 277.2);
Tailwind
colors: {
  custom: {
    50: '#9077ea',
    500: '#4c40df',
    950: '#000000',
  },
}
SCSS
$custom: #4c40df;
$custom-light: #9077ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40df",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 244.528,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.49439,
    "c": 0.22968,
    "h": 277.2
  },
  "luminance": 0.10531
}

Semantic roles & 50–950 ramp

primary
#4C40DF
secondary
#D9DE9D
accent
#EE3AE0
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4C40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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