#4042E2#4042E2

#4042E2 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.3% C 0.234 H 273.2°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#4042E2
RGBrgb(64, 66, 226)
HSLhsl(239, 74%, 57%)
HSVhsv(239, 72%, 89%)
CMYKcmyk(71.7%, 70.8%, 0%, 11.4%)
CIE-LABlab(38.68, 50.28, -80.78)
CIE-LCHlch(38.68, 95.15, 301.90°)
OKLaboklab(49.26% 0.013 -0.2337)
OKLCHoklch(49.26% 0.234 273.2)
XYZxyz(17.7854, 10.4756, 73.0214)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042E2 #E2E040
analogous
#4093E2 #4042E2 #8F40E2
triadic
#4042E2 #E24042 #42E240
tetradic
#4042E2 #E24093 #E2E040 #40E28F
square
#4042E2 #E24093 #E2E040 #40E28F
split-complementary
#4042E2 #E28F40 #93E240
monochromatic
#161892 #1E20C7 #4042E2 #7577EA #AAABF2

Accessibility & contrast

On white

6.78
#4042E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4042E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4042E2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042E2#FFFFFF#000000##FFFFFF
##4042E21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0053DF
Tritanopia (blue-blind)
#006F8E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4042e2;
/* rgb */ color: rgb(64, 66, 226);
/* oklch */ color: oklch(49.3% 0.234 273.2);
Tailwind
colors: {
  custom: {
    50: '#8c78ec',
    500: '#4042e2',
    950: '#000000',
  },
}
SCSS
$custom: #4042e2;
$custom-light: #8c78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4042e2",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 239.259,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.49255,
    "c": 0.23403,
    "h": 273.2
  },
  "luminance": 0.10477
}

Semantic roles & 50–950 ramp

primary
#4042E2
secondary
#E0DF9E
accent
#EE38F0
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4042E2

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

Preview Lab → · Contrast checker → · Palette generator →

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