#4D41B5#4D41B5

#4D41B5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.9% C 0.176 H 281.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#4D41B5
RGBrgb(77, 65, 181)
HSLhsl(246, 47%, 48%)
HSVhsv(246, 64%, 71%)
CMYKcmyk(57.5%, 64.1%, 0%, 29%)
CIE-LABlab(35.39, 38.01, -60.03)
CIE-LCHlch(35.39, 71.05, 302.34°)
OKLaboklab(45.89% 0.0354 -0.1726)
OKLCHoklch(45.89% 0.176 281.6)
XYZxyz(13.2888, 8.6937, 44.6849)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D41B5 #A9B541
analogous
#416FB5 #4D41B5 #8741B5
triadic
#4D41B5 #B54D41 #41B54D
tetradic
#4D41B5 #B5416F #A9B541 #41B587
square
#4D41B5 #B5416F #A9B541 #41B587
split-complementary
#4D41B5 #B58741 #6FB541
monochromatic
#27215B #3A3188 #4D41B5 #746AC9 #9E97DA

Accessibility & contrast

On white

7.67
#4D41B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4D41B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D41B5
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D41B5#FFFFFF#000000##FFFFFF
##4D41B51.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#135E75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4d41b5;
/* rgb */ color: rgb(77, 65, 181);
/* oklch */ color: oklch(45.9% 0.176 281.6);
Tailwind
colors: {
  custom: {
    50: '#8976cc',
    500: '#4d41b5',
    950: '#000000',
  },
}
SCSS
$custom: #4d41b5;
$custom-light: #8976cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d41b5",
  "rgb": {
    "r": 77,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 246.207,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45893,
    "c": 0.17616,
    "h": 281.6
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#4D41B5
secondary
#BFC58C
accent
#D751C9
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #4D41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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