#4B40D8#4B40D8

#4B40D8 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.7% C 0.222 H 277.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#4B40D8
RGBrgb(75, 64, 216)
HSLhsl(244, 66%, 55%)
HSVhsv(244, 70%, 85%)
CMYKcmyk(65.3%, 70.4%, 0%, 15.3%)
CIE-LABlab(38.06, 49.41, -76.07)
CIE-LCHlch(38.06, 90.70, 303.01°)
OKLaboklab(48.71% 0.0289 -0.2196)
OKLCHoklch(48.71% 0.222 277.5)
XYZxyz(17.1257, 10.1191, 66.0031)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40D8 #CDD840
analogous
#4081D8 #4B40D8 #9740D8
triadic
#4B40D8 #D84B40 #40D84B
tetradic
#4B40D8 #D84081 #CDD840 #40D897
square
#4B40D8 #D84081 #CDD840 #40D897
split-complementary
#4B40D8 #D89740 #81D840
monochromatic
#221B83 #3025B6 #4B40D8 #7B73E2 #ABA6ED

Accessibility & contrast

On white

6.94
#4B40D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4B40D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B40D8
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40D8#FFFFFF#000000##FFFFFF
##4B40D81.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b40d8;
/* rgb */ color: rgb(75, 64, 216);
/* oklch */ color: oklch(48.7% 0.222 277.5);
Tailwind
colors: {
  custom: {
    50: '#8e77e5',
    500: '#4b40d8',
    950: '#000000',
  },
}
SCSS
$custom: #4b40d8;
$custom-light: #8e77e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40d8",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 244.342,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.4871,
    "c": 0.22152,
    "h": 277.5
  },
  "luminance": 0.10121
}

Semantic roles & 50–950 ramp

primary
#4B40D8
secondary
#D5DA9A
accent
#E93FDD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4B40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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