#4A42AA#4A42AA

#4A42AA is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.9% C 0.161 H 281.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#4A42AA
RGBrgb(74, 66, 170)
HSLhsl(245, 44%, 46%)
HSVhsv(245, 61%, 67%)
CMYKcmyk(56.5%, 61.2%, 0%, 33.3%)
CIE-LABlab(34.51, 33.31, -54.93)
CIE-LCHlch(34.51, 64.25, 301.23°)
OKLaboklab(44.92% 0.0313 -0.1577)
OKLCHoklch(44.92% 0.161 281.2)
XYZxyz(12.0257, 8.2538, 38.9819)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42AA #A2AA42
analogous
#426EAA #4A42AA #7E42AA
triadic
#4A42AA #AA4A42 #42AA4A
tetradic
#4A42AA #AA426E #A2AA42 #42AA7E
square
#4A42AA #AA426E #A2AA42 #42AA7E
split-complementary
#4A42AA #AA7E42 #6EAA42
monochromatic
#242052 #37317E #4A42AA #6D66C3 #9792D5

Accessibility & contrast

On white

7.92
#4A42AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4A42AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A42AA
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42AA#FFFFFF#000000##FFFFFF
##4A42AA1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#195B6F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4a42aa;
/* rgb */ color: rgb(74, 66, 170);
/* oklch */ color: oklch(44.9% 0.161 281.2);
Tailwind
colors: {
  custom: {
    50: '#8677c4',
    500: '#4a42aa',
    950: '#000000',
  },
}
SCSS
$custom: #4a42aa;
$custom-light: #8677c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42aa",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 244.615,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44915,
    "c": 0.16076,
    "h": 281.2
  },
  "luminance": 0.08255
}

Semantic roles & 50–950 ramp

primary
#4A42AA
secondary
#BCC088
accent
#D454CA
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4A42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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