#4D38BB#4D38BB

#4D38BB is a mid, vivid blue. Relative luminance 0.080; OKLCH L 45.0% C 0.194 H 282.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#4D38BB
RGBrgb(77, 56, 187)
HSLhsl(250, 54%, 48%)
HSVhsv(250, 70%, 73%)
CMYKcmyk(58.8%, 70.1%, 0%, 26.7%)
CIE-LABlab(33.97, 45.12, -65.89)
CIE-LCHlch(33.97, 79.86, 304.40°)
OKLaboklab(45.03% 0.0424 -0.1898)
OKLCHoklch(45.03% 0.194 282.6)
XYZxyz(13.4416, 7.9931, 47.8386)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38BB #A6BB38
analogous
#3865BB #4D38BB #8E38BB
triadic
#4D38BB #BB4D38 #38BB4D
tetradic
#4D38BB #BB3865 #A6BB38 #38BB8E
square
#4D38BB #BB3865 #A6BB38 #38BB8E
split-complementary
#4D38BB #BB8E38 #65BB38
monochromatic
#261C5D #3A2A8C #4D38BB #7261D0 #9C90DE

Accessibility & contrast

On white

8.08
#4D38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4D38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38BB
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38BB#FFFFFF#000000##FFFFFF
##4D38BB1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004BB9
Tritanopia (blue-blind)
#045B75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4d38bb;
/* rgb */ color: rgb(77, 56, 187);
/* oklch */ color: oklch(45.0% 0.194 282.6);
Tailwind
colors: {
  custom: {
    50: '#8b71d1',
    500: '#4d38bb',
    950: '#000000',
  },
}
SCSS
$custom: #4d38bb;
$custom-light: #8b71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38bb",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 249.618,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45026,
    "c": 0.19445,
    "h": 282.6
  },
  "luminance": 0.07994
}

Semantic roles & 50–950 ramp

primary
#4D38BB
secondary
#BEC886
accent
#DD4BC6
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4D38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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