#4B40DF#4B40DF

#4B40DF is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.4% C 0.230 H 276.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#4B40DF
RGBrgb(75, 64, 223)
HSLhsl(244, 71%, 56%)
HSVhsv(244, 71%, 87%)
CMYKcmyk(66.4%, 71.3%, 0%, 12.5%)
CIE-LABlab(38.71, 51.60, -79.01)
CIE-LCHlch(38.71, 94.36, 303.15°)
OKLaboklab(49.37% 0.0277 -0.2282)
OKLCHoklch(49.37% 0.23 276.9)
XYZxyz(18.0500, 10.4888, 70.8711)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B40DF #D4DF40
analogous
#4085DF #4B40DF #9B40DF
triadic
#4B40DF #DF4B40 #40DF4B
tetradic
#4B40DF #DF4085 #D4DF40 #40DF9B
square
#4B40DF #DF4085 #D4DF40 #40DF9B
split-complementary
#4B40DF #DF9B40 #85DF40
monochromatic
#20188D #2C20C1 #4B40DF #7C74E8 #AEA9F1

Accessibility & contrast

On white

6.78
#4B40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4B40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B40DF
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B40DF#FFFFFF#000000##FFFFFF
##4B40DF1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E4
Deuteranopia (green-blind)
#0054DC
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4b40df;
/* rgb */ color: rgb(75, 64, 223);
/* oklch */ color: oklch(49.4% 0.230 276.9);
Tailwind
colors: {
  custom: {
    50: '#9077ea',
    500: '#4b40df',
    950: '#000000',
  },
}
SCSS
$custom: #4b40df;
$custom-light: #9077ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4b40df",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 244.151,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.4937,
    "c": 0.22989,
    "h": 276.9
  },
  "luminance": 0.1049
}

Semantic roles & 50–950 ramp

primary
#4B40DF
secondary
#DADE9D
accent
#EE3AE2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4B40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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