#4B40C7#4B40C7

#4B40C7 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.1% C 0.201 H 279.0°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#4B40C7
RGBrgb(75, 64, 199)
HSLhsl(245, 55%, 52%)
HSVhsv(245, 68%, 78%)
CMYKcmyk(62.3%, 67.8%, 0%, 22%)
CIE-LABlab(36.53, 44.03, -68.74)
CIE-LCHlch(36.53, 81.63, 302.64°)
OKLaboklab(47.15% 0.0315 -0.1982)
OKLCHoklch(47.15% 0.201 279)
XYZxyz(15.0406, 9.2850, 55.0214)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40C7 #BCC740
analogous
#4079C7 #4B40C7 #8F40C7
triadic
#4B40C7 #C74B40 #40C74B
tetradic
#4B40C7 #C74079 #BCC740 #40C78F
square
#4B40C7 #C74079 #BCC740 #40C78F
split-complementary
#4B40C7 #C78F40 #79C740
monochromatic
#26206D #372E9C #4B40C7 #786FD5 #A49FE3

Accessibility & contrast

On white

7.35
#4B40C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4B40C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B40C7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40C7#FFFFFF#000000##FFFFFF
##4B40C71.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#0051C4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4b40c7;
/* rgb */ color: rgb(75, 64, 199);
/* oklch */ color: oklch(47.1% 0.201 279.0);
Tailwind
colors: {
  custom: {
    50: '#8b76d9',
    500: '#4b40c7',
    950: '#000000',
  },
}
SCSS
$custom: #4b40c7;
$custom-light: #8b76d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40c7",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 244.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.20067,
    "h": 279
  },
  "luminance": 0.09286
}

Semantic roles & 50–950 ramp

primary
#4B40C7
secondary
#CACF94
accent
#DE4AD2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4B40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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