#4042D9#4042D9

#4042D9 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.223 H 273.7°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#4042D9
RGBrgb(64, 66, 217)
HSLhsl(239, 67%, 55%)
HSVhsv(239, 71%, 85%)
CMYKcmyk(70.5%, 69.6%, 0%, 14.9%)
CIE-LABlab(37.83, 47.35, -77.03)
CIE-LCHlch(37.83, 90.42, 301.58°)
OKLaboklab(48.39% 0.0143 -0.2227)
OKLCHoklch(48.39% 0.223 273.7)
XYZxyz(16.5828, 9.9946, 66.6874)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042D9 #D9D740
analogous
#408ED9 #4042D9 #8B40D9
triadic
#4042D9 #D94042 #42D940
tetradic
#4042D9 #D9408E #D9D740 #40D98B
square
#4042D9 #D9408E #D9D740 #40D98B
split-complementary
#4042D9 #D98B40 #8ED940
monochromatic
#1A1C84 #2426B7 #4042D9 #7375E3 #A6A7ED

Accessibility & contrast

On white

7.00
#4042D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4042D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4042D9
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042D9#FFFFFF#000000##FFFFFF
##4042D91.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0052D6
Tritanopia (blue-blind)
#006C89
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4042d9;
/* rgb */ color: rgb(64, 66, 217);
/* oklch */ color: oklch(48.4% 0.223 273.7);
Tailwind
colors: {
  custom: {
    50: '#8a77e6',
    500: '#4042d9',
    950: '#000000',
  },
}
SCSS
$custom: #4042d9;
$custom-light: #8a77e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4042d9",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 239.216,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48389,
    "c": 0.22319,
    "h": 273.7
  },
  "luminance": 0.09996
}

Semantic roles & 50–950 ramp

primary
#4042D9
secondary
#DADA9A
accent
#E73EEA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4042D9

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

Preview Lab → · Contrast checker → · Palette generator →

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