#4041D7#4041D7

#4041D7 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.222 H 273.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4041D7
RGBrgb(64, 65, 215)
HSLhsl(240, 65%, 55%)
HSVhsv(240, 70%, 84%)
CMYKcmyk(70.2%, 69.8%, 0%, 15.7%)
CIE-LABlab(37.44, 47.27, -76.54)
CIE-LCHlch(37.44, 89.96, 301.70°)
OKLaboklab(48.05% 0.0151 -0.2213)
OKLCHoklch(48.05% 0.222 273.9)
XYZxyz(16.2663, 9.7753, 65.3064)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041D7 #D7D640
analogous
#408CD7 #4041D7 #8B40D7
triadic
#4041D7 #D74041 #41D740
tetradic
#4041D7 #D7408C #D7D640 #40D78B
square
#4041D7 #D7408C #D7D640 #40D78B
split-complementary
#4041D7 #D78B40 #8CD740
monochromatic
#1B1C81 #2627B4 #4041D7 #7373E2 #A5A6EC

Accessibility & contrast

On white

7.11
#4041D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4041D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041D7
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041D7#FFFFFF#000000##FFFFFF
##4041D71.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#0051D4
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4041d7;
/* rgb */ color: rgb(64, 65, 215);
/* oklch */ color: oklch(48.0% 0.222 273.9);
Tailwind
colors: {
  custom: {
    50: '#8977e5',
    500: '#4041d7',
    950: '#000000',
  },
}
SCSS
$custom: #4041d7;
$custom-light: #8977e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4041d7",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 215
  },
  "hsl": {
    "h": 239.603,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48047,
    "c": 0.2218,
    "h": 273.9
  },
  "luminance": 0.09777
}

Semantic roles & 50–950 ramp

primary
#4041D7
secondary
#D9D99A
accent
#E73FE8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4041D7

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

Preview Lab → · Contrast checker → · Palette generator →

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