#4A42BC#4A42BC

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

Color values

HEX#4A42BC
RGBrgb(74, 66, 188)
HSLhsl(244, 48%, 50%)
HSVhsv(244, 65%, 74%)
CMYKcmyk(60.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(35.95, 39.17, -63.25)
CIE-LCHlch(35.95, 74.39, 301.77°)
OKLaboklab(46.42% 0.0299 -0.1821)
OKLCHoklch(46.42% 0.185 279.3)
XYZxyz(13.8465, 8.9821, 48.5713)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42BC #B4BC42
analogous
#4277BC #4A42BC #8742BC
triadic
#4A42BC #BC4A42 #42BC4A
tetradic
#4A42BC #BC4277 #B4BC42 #42BC87
square
#4A42BC #BC4277 #B4BC42 #42BC87
split-complementary
#4A42BC #BC8742 #77BC42
monochromatic
#262261 #38328F #4A42BC #756FCC #A09CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A42BC#FFFFFF#000000##FFFFFF
##4A42BC1.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)
#0059C0
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4a42bc;
/* rgb */ color: rgb(74, 66, 188);
/* oklch */ color: oklch(46.4% 0.185 279.3);
Tailwind
colors: {
  custom: {
    50: '#8977d1',
    500: '#4a42bc',
    950: '#000000',
  },
}
SCSS
$custom: #4a42bc;
$custom-light: #8977d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42bc",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 243.934,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4642,
    "c": 0.18455,
    "h": 279.3
  },
  "luminance": 0.08983
}

Semantic roles & 50–950 ramp

primary
#4A42BC
secondary
#C5C991
accent
#D850CF
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4A42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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