#4A42B2#4A42B2

#4A42B2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.171 H 280.3°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#4A42B2
RGBrgb(74, 66, 178)
HSLhsl(244, 46%, 48%)
HSVhsv(244, 63%, 70%)
CMYKcmyk(58.4%, 62.9%, 0%, 30.2%)
CIE-LABlab(35.13, 35.92, -58.67)
CIE-LCHlch(35.13, 68.79, 301.47°)
OKLaboklab(45.57% 0.0308 -0.1687)
OKLCHoklch(45.57% 0.171 280.3)
XYZxyz(12.8056, 8.5658, 43.0894)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42B2 #AAB242
analogous
#4272B2 #4A42B2 #8242B2
triadic
#4A42B2 #B24A42 #42B24A
tetradic
#4A42B2 #B24272 #AAB242 #42B282
square
#4A42B2 #B24272 #AAB242 #42B282
split-complementary
#4A42B2 #B28242 #72B242
monochromatic
#252159 #373185 #4A42B2 #706AC8 #9B96D8

Accessibility & contrast

On white

7.74
#4A42B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4A42B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A42B2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42B2#FFFFFF#000000##FFFFFF
##4A42B21.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#075E74
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4a42b2;
/* rgb */ color: rgb(74, 66, 178);
/* oklch */ color: oklch(45.6% 0.171 280.3);
Tailwind
colors: {
  custom: {
    50: '#8777ca',
    500: '#4a42b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a42b2;
$custom-light: #8777ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42b2",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 244.286,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45572,
    "c": 0.17147,
    "h": 280.3
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#4A42B2
secondary
#C0C48C
accent
#D652CC
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4A42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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