#4A42BA#4A42BA

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

Color values

HEX#4A42BA
RGBrgb(74, 66, 186)
HSLhsl(244, 48%, 49%)
HSVhsv(244, 65%, 73%)
CMYKcmyk(60.2%, 64.5%, 0%, 27.1%)
CIE-LABlab(35.78, 38.52, -62.34)
CIE-LCHlch(35.78, 73.28, 301.71°)
OKLaboklab(46.25% 0.0301 -0.1794)
OKLCHoklch(46.25% 0.182 279.5)
XYZxyz(13.6324, 8.8965, 47.4437)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42BA #B2BA42
analogous
#4276BA #4A42BA #8642BA
triadic
#4A42BA #BA4A42 #42BA4A
tetradic
#4A42BA #BA4276 #B2BA42 #42BA86
square
#4A42BA #BA4276 #B2BA42 #42BA86
split-complementary
#4A42BA #BA8642 #76BA42
monochromatic
#262260 #38328D #4A42BA #746ECB #9F9BDB

Accessibility & contrast

On white

7.56
#4A42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#4A42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A42BA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42BA#FFFFFF#000000##FFFFFF
##4A42BA1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a42ba;
/* rgb */ color: rgb(74, 66, 186);
/* oklch */ color: oklch(46.2% 0.182 279.5);
Tailwind
colors: {
  custom: {
    50: '#8877d0',
    500: '#4a42ba',
    950: '#000000',
  },
}
SCSS
$custom: #4a42ba;
$custom-light: #8877d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42ba",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 244,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46248,
    "c": 0.18196,
    "h": 279.5
  },
  "luminance": 0.08897
}

Semantic roles & 50–950 ramp

primary
#4A42BA
secondary
#C4C890
accent
#D751CE
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0914
muted
#7D7B82

Preview Lab

Preview with #4A42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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