#4D38CA#4D38CA

#4D38CA is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.4% C 0.213 H 280.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#4D38CA
RGBrgb(77, 56, 202)
HSLhsl(249, 58%, 51%)
HSVhsv(249, 72%, 79%)
CMYKcmyk(61.9%, 72.3%, 0%, 20.8%)
CIE-LABlab(35.34, 49.70, -72.43)
CIE-LCHlch(35.34, 87.84, 304.46°)
OKLaboklab(46.42% 0.0395 -0.2089)
OKLCHoklch(46.42% 0.213 280.7)
XYZxyz(15.1320, 8.6693, 56.7416)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D38CA #B5CA38
analogous
#386CCA #4D38CA #9638CA
triadic
#4D38CA #CA4D38 #38CA4D
tetradic
#4D38CA #CA386C #B5CA38 #38CA96
square
#4D38CA #CA386C #B5CA38 #38CA96
split-complementary
#4D38CA #CA9638 #6CCA38
monochromatic
#281D6B #3A299B #4D38CA #7868D7 #A399E4

Accessibility & contrast

On white

7.68
#4D38CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4D38CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D38CA
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D38CA#FFFFFF#000000##FFFFFF
##4D38CA1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4d38ca;
/* rgb */ color: rgb(77, 56, 202);
/* oklch */ color: oklch(46.4% 0.213 280.7);
Tailwind
colors: {
  custom: {
    50: '#8d71db',
    500: '#4d38ca',
    950: '#000000',
  },
}
SCSS
$custom: #4d38ca;
$custom-light: #8d71db;
$custom-dark: #000000;
JSON
{
  "hex": "#4d38ca",
  "rgb": {
    "r": 77,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 248.63,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46421,
    "c": 0.21261,
    "h": 280.7
  },
  "luminance": 0.0867
}

Semantic roles & 50–950 ramp

primary
#4D38CA
secondary
#C6CF8E
accent
#E147CB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4D38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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