#4D40DB#4D40DB

#4D40DB is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.225 H 277.9°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#4D40DB
RGBrgb(77, 64, 219)
HSLhsl(245, 68%, 55%)
HSVhsv(245, 71%, 86%)
CMYKcmyk(64.8%, 70.8%, 0%, 14.1%)
CIE-LABlab(38.48, 50.59, -77.09)
CIE-LCHlch(38.48, 92.20, 303.27°)
OKLaboklab(49.13% 0.0309 -0.2226)
OKLCHoklch(49.13% 0.225 277.9)
XYZxyz(17.6760, 10.3576, 68.0718)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40DB #CEDB40
analogous
#4081DB #4D40DB #9A40DB
triadic
#4D40DB #DB4D40 #40DB4D
tetradic
#4D40DB #DB4081 #CEDB40 #40DB9A
square
#4D40DB #DB4081 #CEDB40 #40DB9A
split-complementary
#4D40DB #DB9A40 #81DB40
monochromatic
#231987 #3023BB #4D40DB #7D73E5 #ADA7EE

Accessibility & contrast

On white

6.84
#4D40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4D40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D40DB
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40DB#FFFFFF#000000##FFFFFF
##4D40DB1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d40db;
/* rgb */ color: rgb(77, 64, 219);
/* oklch */ color: oklch(49.1% 0.225 277.9);
Tailwind
colors: {
  custom: {
    50: '#9077e7',
    500: '#4d40db',
    950: '#000000',
  },
}
SCSS
$custom: #4d40db;
$custom-light: #9077e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40db",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 245.032,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49131,
    "c": 0.2247,
    "h": 277.9
  },
  "luminance": 0.10359
}

Semantic roles & 50–950 ramp

primary
#4D40DB
secondary
#D6DC9B
accent
#EB3DDD
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4D40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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