#4041BB#4041BB

#4041BB is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.187 H 275.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#4041BB
RGBrgb(64, 65, 187)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 66%, 73%)
CMYKcmyk(65.8%, 65.2%, 0%, 26.7%)
CIE-LABlab(34.92, 37.95, -64.38)
CIE-LCHlch(34.92, 74.73, 300.52°)
OKLaboklab(45.46% 0.0184 -0.1857)
OKLCHoklch(45.46% 0.187 275.7)
XYZxyz(12.9713, 8.4573, 47.9529)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041BB #BBBA40
analogous
#407FBB #4041BB #7D40BB
triadic
#4041BB #BB4041 #41BB40
tetradic
#4041BB #BB407F #BBBA40 #40BB7D
square
#4041BB #BB407F #BBBA40 #40BB7D
split-complementary
#4041BB #BB7D40 #7FBB40
monochromatic
#212160 #30318D #4041BB #6C6CCD #999ADC

Accessibility & contrast

On white

7.80
#4041BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4041BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041BB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041BB#FFFFFF#000000##FFFFFF
##4041BB1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4041bb;
/* rgb */ color: rgb(64, 65, 187);
/* oklch */ color: oklch(45.5% 0.187 275.7);
Tailwind
colors: {
  custom: {
    50: '#8476d0',
    500: '#4041bb',
    950: '#000000',
  },
}
SCSS
$custom: #4041bb;
$custom-light: #8476d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4041bb",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 239.512,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45458,
    "c": 0.18662,
    "h": 275.7
  },
  "luminance": 0.08458
}

Semantic roles & 50–950 ramp

primary
#4041BB
secondary
#C8C88F
accent
#D74FD9
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4041BB

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

Preview Lab → · Contrast checker → · Palette generator →

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