#4D40AA#4D40AA

#4D40AA is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.163 H 283.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#4D40AA
RGBrgb(77, 64, 170)
HSLhsl(247, 45%, 46%)
HSVhsv(247, 62%, 67%)
CMYKcmyk(54.7%, 62.4%, 0%, 33.3%)
CIE-LABlab(34.29, 35.11, -55.28)
CIE-LCHlch(34.29, 65.49, 302.42°)
OKLaboklab(44.82% 0.0372 -0.1586)
OKLCHoklch(44.82% 0.163 283.2)
XYZxyz(12.1474, 8.1461, 38.9547)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40AA #9DAA40
analogous
#4068AA #4D40AA #8240AA
triadic
#4D40AA #AA4D40 #40AA4D
tetradic
#4D40AA #AA4068 #9DAA40 #40AA82
square
#4D40AA #AA4068 #9DAA40 #40AA82
split-complementary
#4D40AA #AA8240 #68AA40
monochromatic
#251F51 #392F7E #4D40AA #6F63C4 #988FD5

Accessibility & contrast

On white

7.99
#4D40AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4D40AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40AA
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40AA#FFFFFF#000000##FFFFFF
##4D40AA1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#245A6F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d40aa;
/* rgb */ color: rgb(77, 64, 170);
/* oklch */ color: oklch(44.8% 0.163 283.2);
Tailwind
colors: {
  custom: {
    50: '#8775c4',
    500: '#4d40aa',
    950: '#000000',
  },
}
SCSS
$custom: #4d40aa;
$custom-light: #8775c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40aa",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 247.358,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44815,
    "c": 0.16294,
    "h": 283.2
  },
  "luminance": 0.08147
}

Semantic roles & 50–950 ramp

primary
#4D40AA
secondary
#B9C086
accent
#D553C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4D40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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