#4041D9#4041D9

#4041D9 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.224 H 273.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#4041D9
RGBrgb(64, 65, 217)
HSLhsl(240, 67%, 55%)
HSVhsv(240, 71%, 85%)
CMYKcmyk(70.5%, 70%, 0%, 14.9%)
CIE-LABlab(37.62, 47.93, -77.38)
CIE-LCHlch(37.62, 91.02, 301.77°)
OKLaboklab(48.24% 0.0149 -0.2237)
OKLCHoklch(48.24% 0.224 273.8)
XYZxyz(16.5249, 9.8787, 66.6681)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041D9 #D9D840
analogous
#408DD9 #4041D9 #8C40D9
triadic
#4041D9 #D94041 #41D940
tetradic
#4041D9 #D9408D #D9D840 #40D98C
square
#4041D9 #D9408D #D9D840 #40D98C
split-complementary
#4041D9 #D98C40 #8DD940
monochromatic
#1A1B84 #2425B7 #4041D9 #7374E3 #A6A7ED

Accessibility & contrast

On white

7.06
#4041D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4041D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041D9
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041D9#FFFFFF#000000##FFFFFF
##4041D91.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0051D6
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4041d9;
/* rgb */ color: rgb(64, 65, 217);
/* oklch */ color: oklch(48.2% 0.224 273.8);
Tailwind
colors: {
  custom: {
    50: '#8a77e6',
    500: '#4041d9',
    950: '#000000',
  },
}
SCSS
$custom: #4041d9;
$custom-light: #8a77e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4041d9",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 217
  },
  "hsl": {
    "h": 239.608,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48239,
    "c": 0.22422,
    "h": 273.8
  },
  "luminance": 0.0988
}

Semantic roles & 50–950 ramp

primary
#4041D9
secondary
#DADA9A
accent
#E93EEA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4041D9

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

Preview Lab → · Contrast checker → · Palette generator →

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