#4041AA#4041AA

#4041AA is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.164 H 276.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#4041AA
RGBrgb(64, 65, 170)
HSLhsl(239, 45%, 46%)
HSVhsv(239, 62%, 67%)
CMYKcmyk(62.4%, 61.8%, 0%, 33.3%)
CIE-LABlab(33.50, 32.18, -56.60)
CIE-LCHlch(33.50, 65.11, 299.62°)
OKLaboklab(43.98% 0.0196 -0.1629)
OKLCHoklch(43.98% 0.164 276.9)
XYZxyz(11.2580, 7.7720, 38.9293)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041AA #AAA940
analogous
#4076AA #4041AA #7440AA
triadic
#4041AA #AA4041 #41AA40
tetradic
#4041AA #AA4076 #AAA940 #40AA74
square
#4041AA #AA4076 #AAA940 #40AA74
split-complementary
#4041AA #AA7440 #76AA40
monochromatic
#1F1F51 #2F307E #4041AA #6364C4 #8F90D5

Accessibility & contrast

On white

8.22
#4041AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4041AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4041AA#FFFFFF#000000##FFFFFF
##4041AA1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4041aa;
/* rgb */ color: rgb(64, 65, 170);
/* oklch */ color: oklch(44.0% 0.164 276.9);
Tailwind
colors: {
  custom: {
    50: '#8076c4',
    500: '#4041aa',
    950: '#000000',
  },
}
SCSS
$custom: #4041aa;
$custom-light: #8076c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4041aa",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 239.434,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43984,
    "c": 0.16405,
    "h": 276.9
  },
  "luminance": 0.07773
}

Semantic roles & 50–950 ramp

primary
#4041AA
secondary
#C0C086
accent
#D453D5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4041AA

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

Preview Lab → · Contrast checker → · Palette generator →

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