#4D47BA#4D47BA

#4D47BA is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.3% C 0.175 H 279.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#4D47BA
RGBrgb(77, 71, 186)
HSLhsl(243, 45%, 50%)
HSVhsv(243, 62%, 73%)
CMYKcmyk(58.6%, 61.8%, 0%, 27.1%)
CIE-LABlab(37.17, 35.98, -60.08)
CIE-LCHlch(37.17, 70.03, 300.92°)
OKLaboklab(47.32% 0.0294 -0.1727)
OKLCHoklch(47.32% 0.175 279.7)
XYZxyz(14.1739, 9.6284, 47.5564)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D47BA #B4BA47
analogous
#477BBA #4D47BA #8647BA
triadic
#4D47BA #BA4D47 #47BA4D
tetradic
#4D47BA #BA477B #B4BA47 #47BA86
square
#4D47BA #BA477B #B4BA47 #47BA86
split-complementary
#4D47BA #BA8647 #7BBA47
monochromatic
#282562 #3A358E #4D47BA #7874CB #A3A0DB

Accessibility & contrast

On white

7.18
#4D47BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4D47BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D47BA
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D47BA#FFFFFF#000000##FFFFFF
##4D47BA1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#02637A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4d47ba;
/* rgb */ color: rgb(77, 71, 186);
/* oklch */ color: oklch(47.3% 0.175 279.7);
Tailwind
colors: {
  custom: {
    50: '#897ad0',
    500: '#4d47ba',
    950: '#000000',
  },
}
SCSS
$custom: #4d47ba;
$custom-light: #897ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d47ba",
  "rgb": {
    "r": 77,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 243.13,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47317,
    "c": 0.17517,
    "h": 279.7
  },
  "luminance": 0.09629
}

Semantic roles & 50–950 ramp

primary
#4D47BA
secondary
#C5C895
accent
#D553CE
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0914
muted
#7D7B82

Preview Lab

Preview with #4D47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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