#4C40CF#4C40CF

#4C40CF is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.210 H 278.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#4C40CF
RGBrgb(76, 64, 207)
HSLhsl(245, 60%, 53%)
HSVhsv(245, 69%, 81%)
CMYKcmyk(63.3%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.31, 46.70, -72.09)
CIE-LCHlch(37.31, 85.90, 302.94°)
OKLaboklab(47.95% 0.0316 -0.208)
OKLCHoklch(47.95% 0.21 278.7)
XYZxyz(16.0728, 9.7070, 60.0460)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40CF #C3CF40
analogous
#407BCF #4C40CF #9340CF
triadic
#4C40CF #CF4C40 #40CF4C
tetradic
#4C40CF #CF407B #C3CF40 #40CF93
square
#4C40CF #CF407B #C3CF40 #40CF93
split-complementary
#4C40CF #CF9340 #7BCF40
monochromatic
#251E77 #352AA8 #4C40CF #7A71DB #A8A2E8

Accessibility & contrast

On white

7.14
#4C40CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4C40CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40CF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40CF#FFFFFF#000000##FFFFFF
##4C40CF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#006683
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4c40cf;
/* rgb */ color: rgb(76, 64, 207);
/* oklch */ color: oklch(47.9% 0.210 278.7);
Tailwind
colors: {
  custom: {
    50: '#8d76df',
    500: '#4c40cf',
    950: '#000000',
  },
}
SCSS
$custom: #4c40cf;
$custom-light: #8d76df;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40cf",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 245.035,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47947,
    "c": 0.21037,
    "h": 278.7
  },
  "luminance": 0.09708
}

Semantic roles & 50–950 ramp

primary
#4C40CF
secondary
#CFD497
accent
#E345D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4C40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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