#4041E3#4041E3

#4041E3 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.236 H 273.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#4041E3
RGBrgb(64, 65, 227)
HSLhsl(240, 74%, 57%)
HSVhsv(240, 72%, 89%)
CMYKcmyk(71.8%, 71.4%, 0%, 11%)
CIE-LABlab(38.58, 51.17, -81.53)
CIE-LCHlch(38.58, 96.25, 302.11°)
OKLaboklab(49.21% 0.0134 -0.2358)
OKLCHoklch(49.21% 0.236 273.2)
XYZxyz(17.8651, 10.4148, 73.7269)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041E3 #E3E240
analogous
#4093E3 #4041E3 #9140E3
triadic
#4041E3 #E34041 #41E340
tetradic
#4041E3 #E34093 #E3E240 #40E391
square
#4041E3 #E34093 #E3E240 #40E391
split-complementary
#4041E3 #E39140 #93E340
monochromatic
#161693 #1D1EC8 #4041E3 #7576EB #ABABF3

Accessibility & contrast

On white

6.81
#4041E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4041E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4041E3
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041E3#FFFFFF#000000##FFFFFF
##4041E31.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.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: #4041e3;
/* rgb */ color: rgb(64, 65, 227);
/* oklch */ color: oklch(49.2% 0.236 273.2);
Tailwind
colors: {
  custom: {
    50: '#8c77ed',
    500: '#4041e3',
    950: '#000000',
  },
}
SCSS
$custom: #4041e3;
$custom-light: #8c77ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4041e3",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 227
  },
  "hsl": {
    "h": 239.632,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.49208,
    "c": 0.23622,
    "h": 273.2
  },
  "luminance": 0.10417
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4041E3

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

Preview Lab → · Contrast checker → · Palette generator →

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