#4C42BA#4C42BA

#4C42BA is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.4% C 0.182 H 280.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#4C42BA
RGBrgb(76, 66, 186)
HSLhsl(245, 48%, 49%)
HSVhsv(245, 65%, 73%)
CMYKcmyk(59.1%, 64.5%, 0%, 27.1%)
CIE-LABlab(35.94, 38.84, -62.08)
CIE-LCHlch(35.94, 73.23, 302.03°)
OKLaboklab(46.4% 0.0327 -0.1786)
OKLCHoklch(46.4% 0.182 280.4)
XYZxyz(13.7888, 8.9771, 47.4510)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C42BA #B0BA42
analogous
#4274BA #4C42BA #8842BA
triadic
#4C42BA #BA4C42 #42BA4C
tetradic
#4C42BA #BA4274 #B0BA42 #42BA88
square
#4C42BA #BA4274 #B0BA42 #42BA88
split-complementary
#4C42BA #BA8842 #74BA42
monochromatic
#272260 #3A328D #4C42BA #766ECB #A09BDB

Accessibility & contrast

On white

7.51
#4C42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4C42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C42BA
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C42BA#FFFFFF#000000##FFFFFF
##4C42BA1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c42ba;
/* rgb */ color: rgb(76, 66, 186);
/* oklch */ color: oklch(46.4% 0.182 280.4);
Tailwind
colors: {
  custom: {
    50: '#8977d0',
    500: '#4c42ba',
    950: '#000000',
  },
}
SCSS
$custom: #4c42ba;
$custom-light: #8977d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c42ba",
  "rgb": {
    "r": 76,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 245,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46401,
    "c": 0.1816,
    "h": 280.4
  },
  "luminance": 0.08978
}

Semantic roles & 50–950 ramp

primary
#4C42BA
secondary
#C3C890
accent
#D751CC
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #4C42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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