#4D3F97#4D3F97

#4D3F97 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.138 H 286.3°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#4D3F97
RGBrgb(77, 63, 151)
HSLhsl(250, 41%, 42%)
HSVhsv(250, 58%, 59%)
CMYKcmyk(49%, 58.3%, 0%, 40.8%)
CIE-LABlab(32.63, 29.72, -46.51)
CIE-LCHlch(32.63, 55.19, 302.58°)
OKLaboklab(43.15% 0.039 -0.1328)
OKLCHoklch(43.15% 0.138 286.3)
XYZxyz(10.4224, 7.3667, 30.1449)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3F97 #89973F
analogous
#3F5D97 #4D3F97 #793F97
triadic
#4D3F97 #974D3F #3F974D
tetradic
#4D3F97 #973F5D #89973F #3F9779
square
#4D3F97 #973F5D #89973F #3F9779
split-complementary
#4D3F97 #97793F #5D973F
monochromatic
#211B41 #372D6C #4D3F97 #6959BA #9085CC

Accessibility & contrast

On white

8.49
#4D3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4D3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3F97
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3F97#FFFFFF#000000##FFFFFF
##4D3F971.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F9A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#345364
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d3f97;
/* rgb */ color: rgb(77, 63, 151);
/* oklch */ color: oklch(43.1% 0.138 286.3);
Tailwind
colors: {
  custom: {
    50: '#8574b6',
    500: '#4d3f97',
    950: '#000000',
  },
}
SCSS
$custom: #4d3f97;
$custom-light: #8574b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3f97",
  "rgb": {
    "r": 77,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 249.545,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43148,
    "c": 0.13844,
    "h": 286.3
  },
  "luminance": 0.07367
}

Semantic roles & 50–950 ramp

primary
#4D3F97
secondary
#ADB67C
accent
#D157BE
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #4D3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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