#4C40AF#4C40AF

#4C40AF is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.1% C 0.170 H 282.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#4C40AF
RGBrgb(76, 64, 175)
HSLhsl(246, 46%, 47%)
HSVhsv(246, 63%, 69%)
CMYKcmyk(56.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.60, 36.52, -57.76)
CIE-LCHlch(34.60, 68.34, 302.30°)
OKLaboklab(45.14% 0.0355 -0.1659)
OKLCHoklch(45.14% 0.17 282.1)
XYZxyz(12.5494, 8.2976, 41.4895)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40AF #A3AF40
analogous
#406CAF #4C40AF #8340AF
triadic
#4C40AF #AF4C40 #40AF4C
tetradic
#4C40AF #AF406C #A3AF40 #40AF83
square
#4C40AF #AF406C #A3AF40 #40AF83
split-complementary
#4C40AF #AF8340 #6CAF40
monochromatic
#251F55 #393082 #4C40AF #7065C7 #9A92D7

Accessibility & contrast

On white

7.90
#4C40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4C40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40AF
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40AF#FFFFFF#000000##FFFFFF
##4C40AF1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#1A5B71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4c40af;
/* rgb */ color: rgb(76, 64, 175);
/* oklch */ color: oklch(45.1% 0.170 282.1);
Tailwind
colors: {
  custom: {
    50: '#8875c8',
    500: '#4c40af',
    950: '#000000',
  },
}
SCSS
$custom: #4c40af;
$custom-light: #8875c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40af",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 246.486,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45144,
    "c": 0.16971,
    "h": 282.1
  },
  "luminance": 0.08298
}

Semantic roles & 50–950 ramp

primary
#4C40AF
secondary
#BCC388
accent
#D652C8
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4C40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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