#4042E5#4042E5

#4042E5 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.5% C 0.238 H 273.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#4042E5
RGBrgb(64, 66, 229)
HSLhsl(239, 76%, 57%)
HSVhsv(239, 72%, 90%)
CMYKcmyk(72.1%, 71.2%, 0%, 10.2%)
CIE-LABlab(38.97, 51.25, -82.02)
CIE-LCHlch(38.97, 96.71, 302.00°)
OKLaboklab(49.55% 0.0126 -0.2373)
OKLCHoklch(49.55% 0.238 273)
XYZxyz(18.2007, 10.6417, 75.2084)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042E5 #E5E340
analogous
#4094E5 #4042E5 #9140E5
triadic
#4042E5 #E54042 #42E540
tetradic
#4042E5 #E54094 #E5E340 #40E591
square
#4042E5 #E54094 #E5E340 #40E591
split-complementary
#4042E5 #E59140 #94E540
monochromatic
#141696 #1C1ECC #4042E5 #7677EC #ACADF4

Accessibility & contrast

On white

6.71
#4042E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#4042E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4042E5
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042E5#FFFFFF#000000##FFFFFF
##4042E51.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EA
Deuteranopia (green-blind)
#0054E2
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4042e5;
/* rgb */ color: rgb(64, 66, 229);
/* oklch */ color: oklch(49.5% 0.238 273.0);
Tailwind
colors: {
  custom: {
    50: '#8c78ef',
    500: '#4042e5',
    950: '#000000',
  },
}
SCSS
$custom: #4042e5;
$custom-light: #8c78ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4042e5",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 239.273,
    "s": 76.037,
    "l": 57.451
  },
  "oklch": {
    "l": 0.49547,
    "c": 0.2376,
    "h": 273
  },
  "luminance": 0.10644
}

Semantic roles & 50–950 ramp

primary
#4042E5
secondary
#E2E19F
accent
#F035F3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4042E5

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

Preview Lab → · Contrast checker → · Palette generator →

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