#4041A3#4041A3

#4041A3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.154 H 277.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#4041A3
RGBrgb(64, 65, 163)
HSLhsl(239, 44%, 45%)
HSVhsv(239, 61%, 64%)
CMYKcmyk(60.7%, 60.1%, 0%, 36.1%)
CIE-LABlab(32.95, 29.78, -53.30)
CIE-LCHlch(32.95, 61.06, 299.20°)
OKLaboklab(43.4% 0.0198 -0.1532)
OKLCHoklch(43.4% 0.154 277.4)
XYZxyz(10.6134, 7.5141, 35.5343)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041A3 #A3A240
analogous
#4073A3 #4041A3 #7140A3
triadic
#4041A3 #A34041 #41A340
tetradic
#4041A3 #A34073 #A3A240 #40A371
square
#4041A3 #A34073 #A3A240 #40A371
split-complementary
#4041A3 #A37140 #73A340
monochromatic
#1D1E4B #2F2F77 #4041A3 #6061C0 #8C8CD2

Accessibility & contrast

On white

8.39
#4041A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4041A3#FFFFFF#000000##FFFFFF
##4041A31.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4041a3;
/* rgb */ color: rgb(64, 65, 163);
/* oklch */ color: oklch(43.4% 0.154 277.4);
Tailwind
colors: {
  custom: {
    50: '#7f75bf',
    500: '#4041a3',
    950: '#000000',
  },
}
SCSS
$custom: #4041a3;
$custom-light: #7f75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4041a3",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 163
  },
  "hsl": {
    "h": 239.394,
    "s": 43.612,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43402,
    "c": 0.15447,
    "h": 277.4
  },
  "luminance": 0.07515
}

Semantic roles & 50–950 ramp

primary
#4041A3
secondary
#BDBC82
accent
#D254D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #4041A3

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

Preview Lab → · Contrast checker → · Palette generator →

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