#4041D5#4041D5

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

Color values

HEX#4041D5
RGBrgb(64, 65, 213)
HSLhsl(240, 64%, 54%)
HSVhsv(240, 70%, 84%)
CMYKcmyk(70%, 69.5%, 0%, 16.5%)
CIE-LABlab(37.25, 46.62, -75.69)
CIE-LCHlch(37.25, 88.90, 301.63°)
OKLaboklab(47.86% 0.0154 -0.2188)
OKLCHoklch(47.86% 0.219 274)
XYZxyz(16.0109, 9.6731, 63.9612)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041D5 #D5D440
analogous
#408CD5 #4041D5 #8940D5
triadic
#4041D5 #D54041 #41D540
tetradic
#4041D5 #D5408C #D5D440 #40D589
square
#4041D5 #D5408C #D5D440 #40D589
split-complementary
#4041D5 #D58940 #8CD540
monochromatic
#1C1D7F #2728B1 #4041D5 #7273E0 #A4A5EB

Accessibility & contrast

On white

7.16
#4041D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4041D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041D5
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041D5#FFFFFF#000000##FFFFFF
##4041D51.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0051D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4041d5;
/* rgb */ color: rgb(64, 65, 213);
/* oklch */ color: oklch(47.9% 0.219 274.0);
Tailwind
colors: {
  custom: {
    50: '#8977e3',
    500: '#4041d5',
    950: '#000000',
  },
}
SCSS
$custom: #4041d5;
$custom-light: #8977e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4041d5",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 213
  },
  "hsl": {
    "h": 239.597,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.47857,
    "c": 0.21935,
    "h": 274
  },
  "luminance": 0.09675
}

Semantic roles & 50–950 ramp

primary
#4041D5
secondary
#D8D899
accent
#E641E7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4041D5

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

Preview Lab → · Contrast checker → · Palette generator →

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