#4D42BE#4D42BE

#4D42BE is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.8% C 0.187 H 280.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#4D42BE
RGBrgb(77, 66, 190)
HSLhsl(245, 49%, 50%)
HSVhsv(245, 65%, 75%)
CMYKcmyk(59.5%, 65.3%, 0%, 25.5%)
CIE-LABlab(36.35, 40.29, -63.76)
CIE-LCHlch(36.35, 75.42, 302.29°)
OKLaboklab(46.82% 0.0336 -0.1835)
OKLCHoklch(46.82% 0.187 280.4)
XYZxyz(14.3001, 9.1909, 49.7257)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42BE #B3BE42
analogous
#4275BE #4D42BE #8B42BE
triadic
#4D42BE #BE4D42 #42BE4D
tetradic
#4D42BE #BE4275 #B3BE42 #42BE8B
square
#4D42BE #BE4275 #B3BE42 #42BE8B
split-complementary
#4D42BE #BE8B42 #75BE42
monochromatic
#282263 #3A3291 #4D42BE #7870CE #A39DDD

Accessibility & contrast

On white

7.40
#4D42BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4D42BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D42BE
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42BE#FFFFFF#000000##FFFFFF
##4D42BE1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0051BC
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4d42be;
/* rgb */ color: rgb(77, 66, 190);
/* oklch */ color: oklch(46.8% 0.187 280.4);
Tailwind
colors: {
  custom: {
    50: '#8a77d3',
    500: '#4d42be',
    950: '#000000',
  },
}
SCSS
$custom: #4d42be;
$custom-light: #8a77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42be",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 245.323,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46821,
    "c": 0.18658,
    "h": 280.4
  },
  "luminance": 0.09192
}

Semantic roles & 50–950 ramp

primary
#4D42BE
secondary
#C5CA92
accent
#D84FCC
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4D42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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