#4041AE#4041AE

#4041AE is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.169 H 276.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#4041AE
RGBrgb(64, 65, 174)
HSLhsl(239, 46%, 47%)
HSVhsv(239, 63%, 68%)
CMYKcmyk(63.2%, 62.6%, 0%, 31.8%)
CIE-LABlab(33.83, 33.54, -58.46)
CIE-LCHlch(33.83, 67.40, 299.85°)
OKLaboklab(44.32% 0.0194 -0.1683)
OKLCHoklch(44.32% 0.169 276.6)
XYZxyz(11.6421, 7.9256, 40.9525)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041AE #AEAD40
analogous
#4078AE #4041AE #7640AE
triadic
#4041AE #AE4041 #41AE40
tetradic
#4041AE #AE4078 #AEAD40 #40AE76
square
#4041AE #AE4078 #AEAD40 #40AE76
split-complementary
#4041AE #AE7640 #78AE40
monochromatic
#1F2055 #303081 #4041AE #6566C6 #9292D7

Accessibility & contrast

On white

8.12
#4041AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4041AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041AE
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041AE#FFFFFF#000000##FFFFFF
##4041AE1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4041ae;
/* rgb */ color: rgb(64, 65, 174);
/* oklch */ color: oklch(44.3% 0.169 276.6);
Tailwind
colors: {
  custom: {
    50: '#8176c7',
    500: '#4041ae',
    950: '#000000',
  },
}
SCSS
$custom: #4041ae;
$custom-light: #8176c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4041ae",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 174
  },
  "hsl": {
    "h": 239.455,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44323,
    "c": 0.16945,
    "h": 276.6
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#4041AE
secondary
#C2C288
accent
#D552D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4041AE

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

Preview Lab → · Contrast checker → · Palette generator →

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