#4042E3#4042E3

#4042E3 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.4% C 0.235 H 273.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#4042E3
RGBrgb(64, 66, 227)
HSLhsl(239, 74%, 57%)
HSVhsv(239, 72%, 89%)
CMYKcmyk(71.8%, 70.9%, 0%, 11%)
CIE-LABlab(38.78, 50.61, -81.19)
CIE-LCHlch(38.78, 95.67, 301.94°)
OKLaboklab(49.35% 0.0129 -0.2349)
OKLCHoklch(49.35% 0.235 273.1)
XYZxyz(17.9231, 10.5307, 73.7462)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4042E3 #E3E140
analogous
#4093E3 #4042E3 #9040E3
triadic
#4042E3 #E34042 #42E340
tetradic
#4042E3 #E34093 #E3E140 #40E390
square
#4042E3 #E34093 #E3E140 #40E390
split-complementary
#4042E3 #E39040 #93E340
monochromatic
#161793 #1D1FC8 #4042E3 #7577EB #ABACF3

Accessibility & contrast

On white

6.76
#4042E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4042E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4042E3
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4042E3#FFFFFF#000000##FFFFFF
##4042E31.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4042e3;
/* rgb */ color: rgb(64, 66, 227);
/* oklch */ color: oklch(49.4% 0.235 273.1);
Tailwind
colors: {
  custom: {
    50: '#8c78ed',
    500: '#4042e3',
    950: '#000000',
  },
}
SCSS
$custom: #4042e3;
$custom-light: #8c78ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4042e3",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 227
  },
  "hsl": {
    "h": 239.264,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.49352,
    "c": 0.23522,
    "h": 273.1
  },
  "luminance": 0.10532
}

Semantic roles & 50–950 ramp

primary
#4042E3
secondary
#E1E09E
accent
#EF37F1
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4042E3

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

Preview Lab → · Contrast checker → · Palette generator →

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