#4042AE#4042AE

#4042AE is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.168 H 276.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4042AE
RGBrgb(64, 66, 174)
HSLhsl(239, 46%, 47%)
HSVhsv(239, 63%, 68%)
CMYKcmyk(63.2%, 62.1%, 0%, 31.8%)
CIE-LABlab(34.07, 32.91, -58.06)
CIE-LCHlch(34.07, 66.74, 299.54°)
OKLaboklab(44.5% 0.0185 -0.1672)
OKLCHoklch(44.5% 0.168 276.3)
XYZxyz(11.7001, 8.0415, 40.9718)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042AE #AEAC40
analogous
#4079AE #4042AE #7540AE
triadic
#4042AE #AE4042 #42AE40
tetradic
#4042AE #AE4079 #AEAC40 #40AE75
square
#4042AE #AE4079 #AEAC40 #40AE75
split-complementary
#4042AE #AE7540 #79AE40
monochromatic
#1F2055 #303181 #4042AE #6567C6 #9293D7

Accessibility & contrast

On white

8.05
#4042AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4042AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4042AE
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042AE#FFFFFF#000000##FFFFFF
##4042AE1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4042ae;
/* rgb */ color: rgb(64, 66, 174);
/* oklch */ color: oklch(44.5% 0.168 276.3);
Tailwind
colors: {
  custom: {
    50: '#8176c7',
    500: '#4042ae',
    950: '#000000',
  },
}
SCSS
$custom: #4042ae;
$custom-light: #8176c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4042ae",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 238.909,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.445,
    "c": 0.1682,
    "h": 276.3
  },
  "luminance": 0.08042
}

Semantic roles & 50–950 ramp

primary
#4042AE
secondary
#C2C188
accent
#D352D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4042AE

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

Preview Lab → · Contrast checker → · Palette generator →

#4042AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva