#4D40AF#4D40AF

#4D40AF is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.170 H 282.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#4D40AF
RGBrgb(77, 64, 175)
HSLhsl(247, 46%, 47%)
HSVhsv(247, 63%, 69%)
CMYKcmyk(56%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.68, 36.70, -57.62)
CIE-LCHlch(34.68, 68.32, 302.49°)
OKLaboklab(45.23% 0.0368 -0.1655)
OKLCHoklch(45.23% 0.17 282.5)
XYZxyz(12.6294, 8.3389, 41.4932)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40AF #A2AF40
analogous
#406BAF #4D40AF #8540AF
triadic
#4D40AF #AF4D40 #40AF4D
tetradic
#4D40AF #AF406B #A2AF40 #40AF85
square
#4D40AF #AF406B #A2AF40 #40AF85
split-complementary
#4D40AF #AF8540 #6BAF40
monochromatic
#261F55 #393082 #4D40AF #7165C7 #9A92D7

Accessibility & contrast

On white

7.87
#4D40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4D40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40AF
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40AF#FFFFFF#000000##FFFFFF
##4D40AF1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#1D5B71
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4d40af;
/* rgb */ color: rgb(77, 64, 175);
/* oklch */ color: oklch(45.2% 0.170 282.5);
Tailwind
colors: {
  custom: {
    50: '#8875c8',
    500: '#4d40af',
    950: '#000000',
  },
}
SCSS
$custom: #4d40af;
$custom-light: #8875c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40af",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 247.027,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45226,
    "c": 0.16956,
    "h": 282.5
  },
  "luminance": 0.0834
}

Semantic roles & 50–950 ramp

primary
#4D40AF
secondary
#BCC388
accent
#D652C7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4D40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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