#4041B8#4041B8

#4041B8 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.183 H 275.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#4041B8
RGBrgb(64, 65, 184)
HSLhsl(240, 48%, 49%)
HSVhsv(240, 65%, 72%)
CMYKcmyk(65.2%, 64.7%, 0%, 27.8%)
CIE-LABlab(34.66, 36.94, -63.03)
CIE-LCHlch(34.66, 73.05, 300.37°)
OKLaboklab(45.19% 0.0187 -0.1817)
OKLCHoklch(45.19% 0.183 275.9)
XYZxyz(12.6535, 8.3302, 46.2792)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041B8 #B8B740
analogous
#407DB8 #4041B8 #7B40B8
triadic
#4041B8 #B84041 #41B840
tetradic
#4041B8 #B8407D #B8B740 #40B87B
square
#4041B8 #B8407D #B8B740 #40B87B
split-complementary
#4041B8 #B87B40 #7DB840
monochromatic
#20215D #30318B #4041B8 #6A6BCB #9798DB

Accessibility & contrast

On white

7.88
#4041B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4041B8
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041B8#FFFFFF#000000##FFFFFF
##4041B81.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#004CB6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4041b8;
/* rgb */ color: rgb(64, 65, 184);
/* oklch */ color: oklch(45.2% 0.183 275.9);
Tailwind
colors: {
  custom: {
    50: '#8376ce',
    500: '#4041b8',
    950: '#000000',
  },
}
SCSS
$custom: #4041b8;
$custom-light: #8376ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4041b8",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 239.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45192,
    "c": 0.18271,
    "h": 275.9
  },
  "luminance": 0.08331
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4041B8

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

Preview Lab → · Contrast checker → · Palette generator →

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