#4041D6#4041D6

#4041D6 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.221 H 274.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#4041D6
RGBrgb(64, 65, 214)
HSLhsl(240, 65%, 55%)
HSVhsv(240, 70%, 84%)
CMYKcmyk(70.1%, 69.6%, 0%, 16.1%)
CIE-LABlab(37.34, 46.94, -76.11)
CIE-LCHlch(37.34, 89.43, 301.67°)
OKLaboklab(47.95% 0.0153 -0.22)
OKLCHoklch(47.95% 0.221 274)
XYZxyz(16.1382, 9.7241, 64.6317)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041D6 #D6D540
analogous
#408CD6 #4041D6 #8A40D6
triadic
#4041D6 #D64041 #41D640
tetradic
#4041D6 #D6408C #D6D540 #40D68A
square
#4041D6 #D6408C #D6D540 #40D68A
split-complementary
#4041D6 #D68A40 #8CD640
monochromatic
#1B1C80 #2627B2 #4041D6 #7273E1 #A5A5EC

Accessibility & contrast

On white

7.13
#4041D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4041D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041D6
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041D6#FFFFFF#000000##FFFFFF
##4041D61.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4041d6;
/* rgb */ color: rgb(64, 65, 214);
/* oklch */ color: oklch(48.0% 0.221 274.0);
Tailwind
colors: {
  custom: {
    50: '#8977e4',
    500: '#4041d6',
    950: '#000000',
  },
}
SCSS
$custom: #4041d6;
$custom-light: #8977e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4041d6",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 214
  },
  "hsl": {
    "h": 239.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.47952,
    "c": 0.22058,
    "h": 274
  },
  "luminance": 0.09726
}

Semantic roles & 50–950 ramp

primary
#4041D6
secondary
#D9D899
accent
#E740E8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4041D6

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

Preview Lab → · Contrast checker → · Palette generator →

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