#4D409D#4D409D

#4D409D is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.145 H 285.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#4D409D
RGBrgb(77, 64, 157)
HSLhsl(248, 42%, 43%)
HSVhsv(248, 59%, 62%)
CMYKcmyk(51%, 59.2%, 0%, 38.4%)
CIE-LABlab(33.30, 30.98, -49.06)
CIE-LCHlch(33.30, 58.02, 302.28°)
OKLaboklab(43.79% 0.0378 -0.1403)
OKLCHoklch(43.79% 0.145 285.1)
XYZxyz(10.9780, 7.6783, 32.7954)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D409D #909D40
analogous
#40619D #4D409D #7B409D
triadic
#4D409D #9D4D40 #409D4D
tetradic
#4D409D #9D4061 #909D40 #409D7B
square
#4D409D #9D4061 #909D40 #409D7B
split-complementary
#4D409D #9D7B40 #619D40
monochromatic
#221D46 #382E72 #4D409D #6B5DBD #9289CF

Accessibility & contrast

On white

8.28
#4D409D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4D409D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D409D
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D409D#FFFFFF#000000##FFFFFF
##4D409D1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#2F5568
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d409d;
/* rgb */ color: rgb(77, 64, 157);
/* oklch */ color: oklch(43.8% 0.145 285.1);
Tailwind
colors: {
  custom: {
    50: '#8575bb',
    500: '#4d409d',
    950: '#000000',
  },
}
SCSS
$custom: #4d409d;
$custom-light: #8575bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d409d",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 248.387,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43785,
    "c": 0.14531,
    "h": 285.1
  },
  "luminance": 0.07679
}

Semantic roles & 50–950 ramp

primary
#4D409D
secondary
#B1B97F
accent
#D256C1
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4D409D

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

Preview Lab → · Contrast checker → · Palette generator →

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