#4A42A2#4A42A2

#4A42A2 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.3% C 0.150 H 282.1°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#4A42A2
RGBrgb(74, 66, 162)
HSLhsl(245, 42%, 45%)
HSVhsv(245, 59%, 64%)
CMYKcmyk(54.3%, 59.3%, 0%, 36.5%)
CIE-LABlab(33.90, 30.71, -51.12)
CIE-LCHlch(33.90, 59.64, 301.00°)
OKLaboklab(44.28% 0.0315 -0.1465)
OKLCHoklch(44.28% 0.15 282.1)
XYZxyz(11.2918, 7.9602, 35.1169)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42A2 #9AA242
analogous
#426AA2 #4A42A2 #7A42A2
triadic
#4A42A2 #A24A42 #42A24A
tetradic
#4A42A2 #A2426A #9AA242 #42A27A
square
#4A42A2 #A2426A #9AA242 #42A27A
split-complementary
#4A42A2 #A27A42 #6AA242
monochromatic
#221F4B #363077 #4A42A2 #6A62BF #938ED1

Accessibility & contrast

On white

8.10
#4A42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4A42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A42A2
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42A2#FFFFFF#000000##FFFFFF
##4A42A21.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#23586B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4a42a2;
/* rgb */ color: rgb(74, 66, 162);
/* oklch */ color: oklch(44.3% 0.150 282.1);
Tailwind
colors: {
  custom: {
    50: '#8476be',
    500: '#4a42a2',
    950: '#000000',
  },
}
SCSS
$custom: #4a42a2;
$custom-light: #8476be;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42a2",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 245,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44277,
    "c": 0.14983,
    "h": 282.1
  },
  "luminance": 0.07961
}

Semantic roles & 50–950 ramp

primary
#4A42A2
secondary
#B7BC84
accent
#D256C8
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4A42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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