#4D41B2#4D41B2

#4D41B2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.172 H 281.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#4D41B2
RGBrgb(77, 65, 178)
HSLhsl(246, 47%, 48%)
HSVhsv(246, 63%, 70%)
CMYKcmyk(56.7%, 63.5%, 0%, 30.2%)
CIE-LABlab(35.15, 37.05, -58.64)
CIE-LCHlch(35.15, 69.37, 302.29°)
OKLaboklab(45.64% 0.0356 -0.1685)
OKLCHoklch(45.64% 0.172 281.9)
XYZxyz(12.9843, 8.5719, 43.0812)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D41B2 #A6B241
analogous
#416DB2 #4D41B2 #8641B2
triadic
#4D41B2 #B24D41 #41B24D
tetradic
#4D41B2 #B2416D #A6B241 #41B286
square
#4D41B2 #B2416D #A6B241 #41B286
split-complementary
#4D41B2 #B28641 #6DB241
monochromatic
#262058 #3A3185 #4D41B2 #7268C8 #9C95D8

Accessibility & contrast

On white

7.74
#4D41B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4D41B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D41B2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D41B2#FFFFFF#000000##FFFFFF
##4D41B21.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#195D73
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4d41b2;
/* rgb */ color: rgb(77, 65, 178);
/* oklch */ color: oklch(45.6% 0.172 281.9);
Tailwind
colors: {
  custom: {
    50: '#8976ca',
    500: '#4d41b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d41b2;
$custom-light: #8976ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d41b2",
  "rgb": {
    "r": 77,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 246.372,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45642,
    "c": 0.17223,
    "h": 281.9
  },
  "luminance": 0.08573
}

Semantic roles & 50–950 ramp

primary
#4D41B2
secondary
#BEC48B
accent
#D652C8
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4D41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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