#4D38BA#4D38BA

#4D38BA is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.9% C 0.193 H 282.7°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#4D38BA
RGBrgb(77, 56, 186)
HSLhsl(250, 54%, 47%)
HSVhsv(250, 70%, 73%)
CMYKcmyk(58.6%, 69.9%, 0%, 27.1%)
CIE-LABlab(33.88, 44.81, -65.45)
CIE-LCHlch(33.88, 79.32, 304.40°)
OKLaboklab(44.94% 0.0426 -0.1885)
OKLCHoklch(44.94% 0.193 282.7)
XYZxyz(13.3349, 7.9504, 47.2768)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38BA #A5BA38
analogous
#3864BA #4D38BA #8E38BA
triadic
#4D38BA #BA4D38 #38BA4D
tetradic
#4D38BA #BA3864 #A5BA38 #38BA8E
square
#4D38BA #BA3864 #A5BA38 #38BA8E
split-complementary
#4D38BA #BA8E38 #64BA38
monochromatic
#261C5C #3A2A8B #4D38BA #7260CF #9C8FDD

Accessibility & contrast

On white

8.11
#4D38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4D38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38BA
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38BA#FFFFFF#000000##FFFFFF
##4D38BA1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#085B75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4d38ba;
/* rgb */ color: rgb(77, 56, 186);
/* oklch */ color: oklch(44.9% 0.193 282.7);
Tailwind
colors: {
  custom: {
    50: '#8b71d0',
    500: '#4d38ba',
    950: '#000000',
  },
}
SCSS
$custom: #4d38ba;
$custom-light: #8b71d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38ba",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 249.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44935,
    "c": 0.19323,
    "h": 282.7
  },
  "luminance": 0.07951
}

Semantic roles & 50–950 ramp

primary
#4D38BA
secondary
#BDC886
accent
#DD4BC5
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4D38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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