#4041E5#4041E5

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

Color values

HEX#4041E5
RGBrgb(64, 65, 229)
HSLhsl(240, 76%, 57%)
HSVhsv(240, 72%, 90%)
CMYKcmyk(72.1%, 71.6%, 0%, 10.2%)
CIE-LABlab(38.77, 51.81, -82.35)
CIE-LCHlch(38.77, 97.29, 302.18°)
OKLaboklab(49.4% 0.0131 -0.2382)
OKLCHoklch(49.4% 0.239 273.1)
XYZxyz(18.1428, 10.5259, 75.1891)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041E5 #E5E440
analogous
#4094E5 #4041E5 #9140E5
triadic
#4041E5 #E54041 #41E540
tetradic
#4041E5 #E54094 #E5E440 #40E591
square
#4041E5 #E54094 #E5E440 #40E591
split-complementary
#4041E5 #E59140 #94E540
monochromatic
#141596 #1C1DCC #4041E5 #7677EC #ACACF4

Accessibility & contrast

On white

6.76
#4041E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4041E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4041E5
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041E5#FFFFFF#000000##FFFFFF
##4041E51.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)
#0063EA
Deuteranopia (green-blind)
#0053E2
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4041e5;
/* rgb */ color: rgb(64, 65, 229);
/* oklch */ color: oklch(49.4% 0.239 273.1);
Tailwind
colors: {
  custom: {
    50: '#8c77ef',
    500: '#4041e5',
    950: '#000000',
  },
}
SCSS
$custom: #4041e5;
$custom-light: #8c77ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4041e5",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 229
  },
  "hsl": {
    "h": 239.636,
    "s": 76.037,
    "l": 57.451
  },
  "oklch": {
    "l": 0.49404,
    "c": 0.23859,
    "h": 273.1
  },
  "luminance": 0.10528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4041E5

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

Preview Lab → · Contrast checker → · Palette generator →

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