#4041A2#4041A2

#4041A2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.153 H 277.5°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#4041A2
RGBrgb(64, 65, 162)
HSLhsl(239, 43%, 44%)
HSVhsv(239, 60%, 64%)
CMYKcmyk(60.5%, 59.9%, 0%, 36.5%)
CIE-LABlab(32.87, 29.44, -52.83)
CIE-LCHlch(32.87, 60.48, 299.13°)
OKLaboklab(43.32% 0.0199 -0.1518)
OKLCHoklch(43.32% 0.153 277.5)
XYZxyz(10.5241, 7.4784, 35.0643)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041A2 #A2A140
analogous
#4072A2 #4041A2 #7040A2
triadic
#4041A2 #A24041 #41A240
tetradic
#4041A2 #A24072 #A2A140 #40A270
square
#4041A2 #A24072 #A2A140 #40A270
split-complementary
#4041A2 #A27040 #72A240
monochromatic
#1D1E4A #2F2F76 #4041A2 #5F60C0 #8B8CD1

Accessibility & contrast

On white

8.41
#4041A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4041A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4041A2#FFFFFF#000000##FFFFFF
##4041A21.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4041a2;
/* rgb */ color: rgb(64, 65, 162);
/* oklch */ color: oklch(43.3% 0.153 277.5);
Tailwind
colors: {
  custom: {
    50: '#7f75be',
    500: '#4041a2',
    950: '#000000',
  },
}
SCSS
$custom: #4041a2;
$custom-light: #7f75be;
$custom-dark: #000000;
JSON
{
  "hex": "#4041a2",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 239.388,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4332,
    "c": 0.15308,
    "h": 277.5
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

primary
#4041A2
secondary
#BCBB82
accent
#D255D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #4041A2

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

Preview Lab → · Contrast checker → · Palette generator →

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