#4041AC#4041AC

#4041AC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.167 H 276.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#4041AC
RGBrgb(64, 65, 172)
HSLhsl(239, 46%, 46%)
HSVhsv(239, 63%, 67%)
CMYKcmyk(62.8%, 62.2%, 0%, 32.5%)
CIE-LABlab(33.66, 32.86, -57.53)
CIE-LCHlch(33.66, 66.25, 299.73°)
OKLaboklab(44.15% 0.0195 -0.1656)
OKLCHoklch(44.15% 0.167 276.7)
XYZxyz(11.4486, 7.8482, 39.9333)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041AC #ACAB40
analogous
#4077AC #4041AC #7540AC
triadic
#4041AC #AC4041 #41AC40
tetradic
#4041AC #AC4077 #ACAB40 #40AC75
square
#4041AC #AC4077 #ACAB40 #40AC75
split-complementary
#4041AC #AC7540 #77AC40
monochromatic
#1F1F53 #2F307F #4041AC #6465C5 #9191D6

Accessibility & contrast

On white

8.17
#4041AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4041AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041AC
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041AC#FFFFFF#000000##FFFFFF
##4041AC1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4041ac;
/* rgb */ color: rgb(64, 65, 172);
/* oklch */ color: oklch(44.2% 0.167 276.7);
Tailwind
colors: {
  custom: {
    50: '#8176c6',
    500: '#4041ac',
    950: '#000000',
  },
}
SCSS
$custom: #4041ac;
$custom-light: #8176c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4041ac",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 239.444,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44153,
    "c": 0.16676,
    "h": 276.7
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#4041AC
secondary
#C1C187
accent
#D452D5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4041AC

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

Preview Lab → · Contrast checker → · Palette generator →

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