#4041D8#4041D8

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

Color values

HEX#4041D8
RGBrgb(64, 65, 216)
HSLhsl(240, 66%, 55%)
HSVhsv(240, 70%, 85%)
CMYKcmyk(70.4%, 69.9%, 0%, 15.3%)
CIE-LABlab(37.53, 47.60, -76.96)
CIE-LCHlch(37.53, 90.49, 301.74°)
OKLaboklab(48.14% 0.015 -0.2225)
OKLCHoklch(48.14% 0.223 273.9)
XYZxyz(16.3952, 9.8269, 65.9852)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041D8 #D8D740
analogous
#408DD8 #4041D8 #8B40D8
triadic
#4041D8 #D84041 #41D840
tetradic
#4041D8 #D8408D #D8D740 #40D88B
square
#4041D8 #D8408D #D8D740 #40D88B
split-complementary
#4041D8 #D88B40 #8DD840
monochromatic
#1B1B83 #2526B6 #4041D8 #7374E2 #A6A6ED

Accessibility & contrast

On white

7.08
#4041D8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4041D8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041D8
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041D8#FFFFFF#000000##FFFFFF
##4041D81.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDD
Deuteranopia (green-blind)
#0051D5
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4041d8;
/* rgb */ color: rgb(64, 65, 216);
/* oklch */ color: oklch(48.1% 0.223 273.9);
Tailwind
colors: {
  custom: {
    50: '#8a77e5',
    500: '#4041d8',
    950: '#000000',
  },
}
SCSS
$custom: #4041d8;
$custom-light: #8a77e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4041d8",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 239.605,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.48143,
    "c": 0.22302,
    "h": 273.9
  },
  "luminance": 0.09828
}

Semantic roles & 50–950 ramp

primary
#4041D8
secondary
#DAD99A
accent
#E83FE9
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4041D8

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

Preview Lab → · Contrast checker → · Palette generator →

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