#4B42BA#4B42BA

#4B42BA is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.3% C 0.182 H 280.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#4B42BA
RGBrgb(75, 66, 186)
HSLhsl(245, 48%, 49%)
HSVhsv(245, 65%, 73%)
CMYKcmyk(59.7%, 64.5%, 0%, 27.1%)
CIE-LABlab(35.86, 38.68, -62.21)
CIE-LCHlch(35.86, 73.26, 301.87°)
OKLaboklab(46.32% 0.0314 -0.179)
OKLCHoklch(46.32% 0.182 280)
XYZxyz(13.7100, 8.9365, 47.4473)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B42BA #B1BA42
analogous
#4275BA #4B42BA #8742BA
triadic
#4B42BA #BA4B42 #42BA4B
tetradic
#4B42BA #BA4275 #B1BA42 #42BA87
square
#4B42BA #BA4275 #B1BA42 #42BA87
split-complementary
#4B42BA #BA8742 #75BA42
monochromatic
#272260 #39328D #4B42BA #756ECB #A09BDB

Accessibility & contrast

On white

7.53
#4B42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4B42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B42BA
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B42BA#FFFFFF#000000##FFFFFF
##4B42BA1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4b42ba;
/* rgb */ color: rgb(75, 66, 186);
/* oklch */ color: oklch(46.3% 0.182 280.0);
Tailwind
colors: {
  custom: {
    50: '#8977d0',
    500: '#4b42ba',
    950: '#000000',
  },
}
SCSS
$custom: #4b42ba;
$custom-light: #8977d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b42ba",
  "rgb": {
    "r": 75,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 244.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46324,
    "c": 0.18177,
    "h": 280
  },
  "luminance": 0.08937
}

Semantic roles & 50–950 ramp

primary
#4B42BA
secondary
#C3C890
accent
#D751CD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0914
muted
#7D7B82

Preview Lab

Preview with #4B42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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