#4C40CD#4C40CD

#4C40CD is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.208 H 278.8°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#4C40CD
RGBrgb(76, 64, 205)
HSLhsl(245, 59%, 53%)
HSVhsv(245, 69%, 80%)
CMYKcmyk(62.9%, 68.8%, 0%, 19.6%)
CIE-LABlab(37.13, 46.07, -71.23)
CIE-LCHlch(37.13, 84.83, 302.90°)
OKLaboklab(47.76% 0.032 -0.2054)
OKLCHoklch(47.76% 0.208 278.8)
XYZxyz(15.8298, 9.6098, 58.7665)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40CD #C1CD40
analogous
#407BCD #4C40CD #9240CD
triadic
#4C40CD #CD4C40 #40CD4C
tetradic
#4C40CD #CD407B #C1CD40 #40CD92
square
#4C40CD #CD407B #C1CD40 #40CD92
split-complementary
#4C40CD #CD9240 #7BCD40
monochromatic
#261E74 #352BA5 #4C40CD #7971DA #A7A1E6

Accessibility & contrast

On white

7.19
#4C40CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4C40CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40CD
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40CD#FFFFFF#000000##FFFFFF
##4C40CD1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4c40cd;
/* rgb */ color: rgb(76, 64, 205);
/* oklch */ color: oklch(47.8% 0.208 278.8);
Tailwind
colors: {
  custom: {
    50: '#8d76dd',
    500: '#4c40cd',
    950: '#000000',
  },
}
SCSS
$custom: #4c40cd;
$custom-light: #8d76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40cd",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 245.106,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47764,
    "c": 0.20792,
    "h": 278.8
  },
  "luminance": 0.09611
}

Semantic roles & 50–950 ramp

primary
#4C40CD
secondary
#CED396
accent
#E246D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4C40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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