#4B40D7#4B40D7

#4B40D7 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.220 H 277.6°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#4B40D7
RGBrgb(75, 64, 215)
HSLhsl(244, 65%, 55%)
HSVhsv(244, 70%, 84%)
CMYKcmyk(65.1%, 70.2%, 0%, 15.7%)
CIE-LABlab(37.96, 49.09, -75.64)
CIE-LCHlch(37.96, 90.18, 302.99°)
OKLaboklab(48.62% 0.0291 -0.2184)
OKLCHoklch(48.62% 0.22 277.6)
XYZxyz(16.9968, 10.0675, 65.3243)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40D7 #CCD740
analogous
#4080D7 #4B40D7 #9740D7
triadic
#4B40D7 #D74B40 #40D74B
tetradic
#4B40D7 #D74080 #CCD740 #40D797
square
#4B40D7 #D74080 #CCD740 #40D797
split-complementary
#4B40D7 #D79740 #80D740
monochromatic
#231B81 #3026B4 #4B40D7 #7B73E2 #AAA5EC

Accessibility & contrast

On white

6.97
#4B40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4B40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B40D7
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40D7#FFFFFF#000000##FFFFFF
##4B40D71.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0053D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4b40d7;
/* rgb */ color: rgb(75, 64, 215);
/* oklch */ color: oklch(48.6% 0.220 277.6);
Tailwind
colors: {
  custom: {
    50: '#8e77e5',
    500: '#4b40d7',
    950: '#000000',
  },
}
SCSS
$custom: #4b40d7;
$custom-light: #8e77e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40d7",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 244.371,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48616,
    "c": 0.22032,
    "h": 277.6
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#4B40D7
secondary
#D5D99A
accent
#E83FDC
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4B40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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