#4D40D4#4D40D4

#4D40D4 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.216 H 278.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#4D40D4
RGBrgb(77, 64, 212)
HSLhsl(245, 63%, 54%)
HSVhsv(245, 70%, 83%)
CMYKcmyk(63.7%, 69.8%, 0%, 16.9%)
CIE-LABlab(37.84, 48.40, -74.12)
CIE-LCHlch(37.84, 88.52, 303.15°)
OKLaboklab(48.48% 0.0321 -0.2139)
OKLCHoklch(48.48% 0.216 278.5)
XYZxyz(16.7738, 9.9967, 63.3202)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40D4 #C7D440
analogous
#407DD4 #4D40D4 #9740D4
triadic
#4D40D4 #D44D40 #40D44D
tetradic
#4D40D4 #D4407D #C7D440 #40D497
square
#4D40D4 #D4407D #C7D440 #40D497
split-complementary
#4D40D4 #D49740 #7DD440
monochromatic
#251C7D #3327AF #4D40D4 #7C72DF #AAA4EA

Accessibility & contrast

On white

7.00
#4D40D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4D40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D40D4
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40D4#FFFFFF#000000##FFFFFF
##4D40D41.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0053D1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4d40d4;
/* rgb */ color: rgb(77, 64, 212);
/* oklch */ color: oklch(48.5% 0.216 278.5);
Tailwind
colors: {
  custom: {
    50: '#8f77e2',
    500: '#4d40d4',
    950: '#000000',
  },
}
SCSS
$custom: #4d40d4;
$custom-light: #8f77e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40d4",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 245.27,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.4848,
    "c": 0.21628,
    "h": 278.5
  },
  "luminance": 0.09998
}

Semantic roles & 50–950 ramp

primary
#4D40D4
secondary
#D2D798
accent
#E642D8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4D40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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