#4D38C2#4D38C2

#4D38C2 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.203 H 281.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#4D38C2
RGBrgb(77, 56, 194)
HSLhsl(249, 55%, 49%)
HSVhsv(249, 71%, 76%)
CMYKcmyk(60.3%, 71.1%, 0%, 23.9%)
CIE-LABlab(34.60, 47.26, -68.97)
CIE-LCHlch(34.60, 83.61, 304.42°)
OKLaboklab(45.67% 0.0411 -0.1988)
OKLCHoklch(45.67% 0.203 281.7)
XYZxyz(14.2093, 8.3002, 51.8818)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38C2 #ADC238
analogous
#3868C2 #4D38C2 #9238C2
triadic
#4D38C2 #C24D38 #38C24D
tetradic
#4D38C2 #C23868 #ADC238 #38C292
square
#4D38C2 #C23868 #ADC238 #38C292
split-complementary
#4D38C2 #C29238 #68C238
monochromatic
#271D63 #3A2A93 #4D38C2 #7565D2 #A094E0

Accessibility & contrast

On white

7.89
#4D38C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4D38C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38C2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38C2#FFFFFF#000000##FFFFFF
##4D38C21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#005D79
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d38c2;
/* rgb */ color: rgb(77, 56, 194);
/* oklch */ color: oklch(45.7% 0.203 281.7);
Tailwind
colors: {
  custom: {
    50: '#8c71d6',
    500: '#4d38c2',
    950: '#000000',
  },
}
SCSS
$custom: #4d38c2;
$custom-light: #8c71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38c2",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 249.13,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.4567,
    "c": 0.20299,
    "h": 281.7
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#4D38C2
secondary
#C2CB8A
accent
#DF49C8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4D38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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