#4D40D3#4D40D3

#4D40D3 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.4% C 0.215 H 278.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#4D40D3
RGBrgb(77, 64, 211)
HSLhsl(245, 63%, 54%)
HSVhsv(245, 70%, 83%)
CMYKcmyk(63.5%, 69.7%, 0%, 17.3%)
CIE-LABlab(37.75, 48.09, -73.69)
CIE-LCHlch(37.75, 87.99, 303.13°)
OKLaboklab(48.39% 0.0323 -0.2126)
OKLCHoklch(48.39% 0.215 278.6)
XYZxyz(16.6481, 9.9464, 62.6579)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40D3 #C6D340
analogous
#407DD3 #4D40D3 #9740D3
triadic
#4D40D3 #D34D40 #40D34D
tetradic
#4D40D3 #D3407D #C6D340 #40D397
square
#4D40D3 #D3407D #C6D340 #40D397
split-complementary
#4D40D3 #D39740 #7DD340
monochromatic
#251D7C #3428AE #4D40D3 #7B72DE #AAA3EA

Accessibility & contrast

On white

7.02
#4D40D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4D40D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40D3
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40D3#FFFFFF#000000##FFFFFF
##4D40D31.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d40d3;
/* rgb */ color: rgb(77, 64, 211);
/* oklch */ color: oklch(48.4% 0.215 278.6);
Tailwind
colors: {
  custom: {
    50: '#8e76e2',
    500: '#4d40d3',
    950: '#000000',
  },
}
SCSS
$custom: #4d40d3;
$custom-light: #8e76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40d3",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 245.306,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48387,
    "c": 0.21506,
    "h": 278.6
  },
  "luminance": 0.09948
}

Semantic roles & 50–950 ramp

primary
#4D40D3
secondary
#D1D798
accent
#E642D7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #4D40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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