#4041E4#4041E4

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

Color values

HEX#4041E4
RGBrgb(64, 65, 228)
HSLhsl(240, 75%, 57%)
HSVhsv(240, 72%, 89%)
CMYKcmyk(71.9%, 71.5%, 0%, 10.6%)
CIE-LABlab(38.67, 51.49, -81.94)
CIE-LCHlch(38.67, 96.77, 302.15°)
OKLaboklab(49.31% 0.0132 -0.237)
OKLCHoklch(49.31% 0.237 273.2)
XYZxyz(18.0036, 10.4702, 74.4559)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041E4 #E4E340
analogous
#4093E4 #4041E4 #9140E4
triadic
#4041E4 #E44041 #41E440
tetradic
#4041E4 #E44093 #E4E340 #40E491
square
#4041E4 #E44093 #E4E340 #40E491
split-complementary
#4041E4 #E49140 #93E440
monochromatic
#151695 #1D1ECA #4041E4 #7676EC #ABACF3

Accessibility & contrast

On white

6.79
#4041E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4041E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4041E4
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041E4#FFFFFF#000000##FFFFFF
##4041E41.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4041e4;
/* rgb */ color: rgb(64, 65, 228);
/* oklch */ color: oklch(49.3% 0.237 273.2);
Tailwind
colors: {
  custom: {
    50: '#8c77ee',
    500: '#4041e4',
    950: '#000000',
  },
}
SCSS
$custom: #4041e4;
$custom-light: #8c77ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4041e4",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 228
  },
  "hsl": {
    "h": 239.634,
    "s": 75.229,
    "l": 57.255
  },
  "oklch": {
    "l": 0.49306,
    "c": 0.2374,
    "h": 273.2
  },
  "luminance": 0.10472
}

Semantic roles & 50–950 ramp

primary
#4041E4
secondary
#E1E19F
accent
#F136F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4041E4

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

Preview Lab → · Contrast checker → · Palette generator →

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