#4B40D9#4B40D9

#4B40D9 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.223 H 277.4°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#4B40D9
RGBrgb(75, 64, 217)
HSLhsl(244, 67%, 55%)
HSVhsv(244, 71%, 85%)
CMYKcmyk(65.4%, 70.5%, 0%, 14.9%)
CIE-LABlab(38.15, 49.72, -76.49)
CIE-LCHlch(38.15, 91.23, 303.03°)
OKLaboklab(48.8% 0.0287 -0.2209)
OKLCHoklch(48.8% 0.223 277.4)
XYZxyz(17.2554, 10.1709, 66.6860)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40D9 #CED940
analogous
#4081D9 #4B40D9 #9840D9
triadic
#4B40D9 #D94B40 #40D94B
tetradic
#4B40D9 #D94081 #CED940 #40D998
square
#4B40D9 #D94081 #CED940 #40D998
split-complementary
#4B40D9 #D99840 #81D940
monochromatic
#221A84 #2F24B7 #4B40D9 #7B73E3 #ABA6ED

Accessibility & contrast

On white

6.92
#4B40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#4B40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B40D9
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40D9#FFFFFF#000000##FFFFFF
##4B40D91.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0053D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4b40d9;
/* rgb */ color: rgb(75, 64, 217);
/* oklch */ color: oklch(48.8% 0.223 277.4);
Tailwind
colors: {
  custom: {
    50: '#8f77e6',
    500: '#4b40d9',
    950: '#000000',
  },
}
SCSS
$custom: #4b40d9;
$custom-light: #8f77e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40d9",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 244.314,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48803,
    "c": 0.22272,
    "h": 277.4
  },
  "luminance": 0.10172
}

Semantic roles & 50–950 ramp

primary
#4B40D9
secondary
#D6DA9A
accent
#EA3EDD
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4B40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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