#4041B9#4041B9

#4041B9 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.184 H 275.8°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#4041B9
RGBrgb(64, 65, 185)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 65%, 73%)
CMYKcmyk(65.4%, 64.9%, 0%, 27.5%)
CIE-LABlab(34.75, 37.28, -63.48)
CIE-LCHlch(34.75, 73.61, 300.42°)
OKLaboklab(45.28% 0.0186 -0.1831)
OKLCHoklch(45.28% 0.184 275.8)
XYZxyz(12.7587, 8.3723, 46.8332)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041B9 #B9B840
analogous
#407EB9 #4041B9 #7C40B9
triadic
#4041B9 #B94041 #41B940
tetradic
#4041B9 #B9407E #B9B840 #40B97C
square
#4041B9 #B9407E #B9B840 #40B97C
split-complementary
#4041B9 #B97C40 #7EB940
monochromatic
#21215E #30318C #4041B9 #6B6BCC #9899DB

Accessibility & contrast

On white

7.85
#4041B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4041B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041B9
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041B9#FFFFFF#000000##FFFFFF
##4041B91.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4041b9;
/* rgb */ color: rgb(64, 65, 185);
/* oklch */ color: oklch(45.3% 0.184 275.8);
Tailwind
colors: {
  custom: {
    50: '#8376cf',
    500: '#4041b9',
    950: '#000000',
  },
}
SCSS
$custom: #4041b9;
$custom-light: #8376cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4041b9",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 185
  },
  "hsl": {
    "h": 239.504,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4528,
    "c": 0.18401,
    "h": 275.8
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#4041B9
secondary
#C7C78E
accent
#D750D8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4041B9

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

Preview Lab → · Contrast checker → · Palette generator →

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