#4041B3#4041B3

#4041B3 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.176 H 276.2°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#4041B3
RGBrgb(64, 65, 179)
HSLhsl(239, 47%, 48%)
HSVhsv(239, 64%, 70%)
CMYKcmyk(64.2%, 63.7%, 0%, 29.8%)
CIE-LABlab(34.24, 35.24, -60.76)
CIE-LCHlch(34.24, 70.24, 300.12°)
OKLaboklab(44.75% 0.0191 -0.1751)
OKLCHoklch(44.75% 0.176 276.2)
XYZxyz(12.1387, 8.1242, 43.5675)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041B3 #B3B240
analogous
#407BB3 #4041B3 #7840B3
triadic
#4041B3 #B34041 #41B340
tetradic
#4041B3 #B3407B #B3B240 #40B378
square
#4041B3 #B3407B #B3B240 #40B378
split-complementary
#4041B3 #B37840 #7BB340
monochromatic
#202059 #303186 #4041B3 #6768C9 #9495D9

Accessibility & contrast

On white

8.00
#4041B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4041B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4041B3#FFFFFF#000000##FFFFFF
##4041B31.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#004BB1
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4041b3;
/* rgb */ color: rgb(64, 65, 179);
/* oklch */ color: oklch(44.8% 0.176 276.2);
Tailwind
colors: {
  custom: {
    50: '#8276cb',
    500: '#4041b3',
    950: '#000000',
  },
}
SCSS
$custom: #4041b3;
$custom-light: #8276cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4041b3",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 179
  },
  "hsl": {
    "h": 239.478,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44754,
    "c": 0.17613,
    "h": 276.2
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#4041B3
secondary
#C4C48A
accent
#D651D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4041B3

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

Preview Lab → · Contrast checker → · Palette generator →

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