#4B40DB#4B40DB

#4B40DB is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.225 H 277.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#4B40DB
RGBrgb(75, 64, 219)
HSLhsl(244, 68%, 55%)
HSVhsv(244, 71%, 86%)
CMYKcmyk(65.8%, 70.8%, 0%, 14.1%)
CIE-LABlab(38.33, 50.35, -77.33)
CIE-LCHlch(38.33, 92.28, 303.07°)
OKLaboklab(48.99% 0.0284 -0.2233)
OKLCHoklch(48.99% 0.225 277.2)
XYZxyz(17.5171, 10.2756, 68.0644)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40DB #D0DB40
analogous
#4082DB #4B40DB #9840DB
triadic
#4B40DB #DB4B40 #40DB4B
tetradic
#4B40DB #DB4082 #D0DB40 #40DB98
square
#4B40DB #DB4082 #D0DB40 #40DB98
split-complementary
#4B40DB #DB9840 #82DB40
monochromatic
#211987 #2E23BB #4B40DB #7C73E5 #ACA7EE

Accessibility & contrast

On white

6.87
#4B40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#4B40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B40DB
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40DB#FFFFFF#000000##FFFFFF
##4B40DB1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E0
Deuteranopia (green-blind)
#0054D8
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4b40db;
/* rgb */ color: rgb(75, 64, 219);
/* oklch */ color: oklch(49.0% 0.225 277.2);
Tailwind
colors: {
  custom: {
    50: '#8f77e7',
    500: '#4b40db',
    950: '#000000',
  },
}
SCSS
$custom: #4b40db;
$custom-light: #8f77e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40db",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 244.258,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.48992,
    "c": 0.22512,
    "h": 277.2
  },
  "luminance": 0.10277
}

Semantic roles & 50–950 ramp

primary
#4B40DB
secondary
#D7DC9B
accent
#EB3DDF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4B40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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