#4041B4#4041B4

#4041B4 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.8% C 0.177 H 276.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#4041B4
RGBrgb(64, 65, 180)
HSLhsl(239, 48%, 48%)
HSVhsv(239, 64%, 71%)
CMYKcmyk(64.4%, 63.9%, 0%, 29.4%)
CIE-LABlab(34.32, 35.58, -61.21)
CIE-LCHlch(34.32, 70.80, 300.17°)
OKLaboklab(44.84% 0.019 -0.1764)
OKLCHoklch(44.84% 0.177 276.1)
XYZxyz(12.2402, 8.1648, 44.1021)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041B4 #B4B340
analogous
#407BB4 #4041B4 #7940B4
triadic
#4041B4 #B44041 #41B440
tetradic
#4041B4 #B4407B #B4B340 #40B479
square
#4041B4 #B4407B #B4B340 #40B479
split-complementary
#4041B4 #B47940 #7BB440
monochromatic
#20205A #303187 #4041B4 #6869C9 #9596D9

Accessibility & contrast

On white

7.98
#4041B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4041B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041B4
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041B4#FFFFFF#000000##FFFFFF
##4041B41.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4041b4;
/* rgb */ color: rgb(64, 65, 180);
/* oklch */ color: oklch(44.8% 0.177 276.1);
Tailwind
colors: {
  custom: {
    50: '#8276cb',
    500: '#4041b4',
    950: '#000000',
  },
}
SCSS
$custom: #4041b4;
$custom-light: #8276cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4041b4",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 239.483,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44841,
    "c": 0.17745,
    "h": 276.1
  },
  "luminance": 0.08166
}

Semantic roles & 50–950 ramp

primary
#4041B4
secondary
#C5C48B
accent
#D651D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4041B4

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

Preview Lab → · Contrast checker → · Palette generator →

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