#4D42BF#4D42BF

#4D42BF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.9% C 0.188 H 280.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#4D42BF
RGBrgb(77, 66, 191)
HSLhsl(245, 49%, 50%)
HSVhsv(245, 65%, 75%)
CMYKcmyk(59.7%, 65.4%, 0%, 25.1%)
CIE-LABlab(36.43, 40.61, -64.21)
CIE-LCHlch(36.43, 75.97, 302.31°)
OKLaboklab(46.91% 0.0335 -0.1848)
OKLCHoklch(46.91% 0.188 280.3)
XYZxyz(14.4098, 9.2348, 50.3033)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42BF #B4BF42
analogous
#4275BF #4D42BF #8B42BF
triadic
#4D42BF #BF4D42 #42BF4D
tetradic
#4D42BF #BF4275 #B4BF42 #42BF8B
square
#4D42BF #BF4275 #B4BF42 #42BF8B
split-complementary
#4D42BF #BF8B42 #75BF42
monochromatic
#282265 #3A3292 #4D42BF #7870CE #A39DDE

Accessibility & contrast

On white

7.38
#4D42BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4D42BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D42BF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42BF#FFFFFF#000000##FFFFFF
##4D42BF1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4d42bf;
/* rgb */ color: rgb(77, 66, 191);
/* oklch */ color: oklch(46.9% 0.188 280.3);
Tailwind
colors: {
  custom: {
    50: '#8b77d3',
    500: '#4d42bf',
    950: '#000000',
  },
}
SCSS
$custom: #4d42bf;
$custom-light: #8b77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42bf",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 245.28,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46907,
    "c": 0.18786,
    "h": 280.3
  },
  "luminance": 0.09236
}

Semantic roles & 50–950 ramp

primary
#4D42BF
secondary
#C5CA93
accent
#D94FCD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4D42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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