#4041B7#4041B7

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

Color values

HEX#4041B7
RGBrgb(64, 65, 183)
HSLhsl(239, 48%, 48%)
HSVhsv(239, 65%, 72%)
CMYKcmyk(65%, 64.5%, 0%, 28.2%)
CIE-LABlab(34.58, 36.60, -62.57)
CIE-LCHlch(34.58, 72.49, 300.32°)
OKLaboklab(45.1% 0.0188 -0.1804)
OKLCHoklch(45.1% 0.181 275.9)
XYZxyz(12.5491, 8.2884, 45.7291)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041B7 #B7B640
analogous
#407CB7 #4041B7 #7A40B7
triadic
#4041B7 #B74041 #41B740
tetradic
#4041B7 #B7407C #B7B640 #40B77A
square
#4041B7 #B7407C #B7B640 #40B77A
split-complementary
#4041B7 #B77A40 #7CB740
monochromatic
#20215C #30318A #4041B7 #696ACB #9797DB

Accessibility & contrast

On white

7.90
#4041B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4041B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041B7
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041B7#FFFFFF#000000##FFFFFF
##4041B71.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#004CB5
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4041b7;
/* rgb */ color: rgb(64, 65, 183);
/* oklch */ color: oklch(45.1% 0.181 275.9);
Tailwind
colors: {
  custom: {
    50: '#8376ce',
    500: '#4041b7',
    950: '#000000',
  },
}
SCSS
$custom: #4041b7;
$custom-light: #8376ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4041b7",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 239.496,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45104,
    "c": 0.18139,
    "h": 275.9
  },
  "luminance": 0.08289
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4041B7

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

Preview Lab → · Contrast checker → · Palette generator →

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