#4D38BF#4D38BF

#4D38BF is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.4% C 0.199 H 282.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#4D38BF
RGBrgb(77, 56, 191)
HSLhsl(249, 55%, 48%)
HSVhsv(249, 71%, 75%)
CMYKcmyk(59.7%, 70.7%, 0%, 25.1%)
CIE-LABlab(34.33, 46.34, -67.66)
CIE-LCHlch(34.33, 82.01, 304.41°)
OKLaboklab(45.39% 0.0417 -0.195)
OKLCHoklch(45.39% 0.199 282.1)
XYZxyz(13.8758, 8.1668, 50.1253)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38BF #AABF38
analogous
#3866BF #4D38BF #9038BF
triadic
#4D38BF #BF4D38 #38BF4D
tetradic
#4D38BF #BF3866 #AABF38 #38BF90
square
#4D38BF #BF3866 #AABF38 #38BF90
split-complementary
#4D38BF #BF9038 #66BF38
monochromatic
#271C60 #3A2A90 #4D38BF #7463D1 #9E92DF

Accessibility & contrast

On white

7.97
#4D38BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4D38BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38BF
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38BF#FFFFFF#000000##FFFFFF
##4D38BF1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#005C77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d38bf;
/* rgb */ color: rgb(77, 56, 191);
/* oklch */ color: oklch(45.4% 0.199 282.1);
Tailwind
colors: {
  custom: {
    50: '#8b71d3',
    500: '#4d38bf',
    950: '#000000',
  },
}
SCSS
$custom: #4d38bf;
$custom-light: #8b71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38bf",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 249.333,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45393,
    "c": 0.19935,
    "h": 282.1
  },
  "luminance": 0.08168
}

Semantic roles & 50–950 ramp

primary
#4D38BF
secondary
#C0CA89
accent
#DE4AC7
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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