#4041B1#4041B1

#4041B1 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.173 H 276.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4041B1
RGBrgb(64, 65, 177)
HSLhsl(239, 47%, 47%)
HSVhsv(239, 64%, 69%)
CMYKcmyk(63.8%, 63.3%, 0%, 30.6%)
CIE-LABlab(34.07, 34.56, -59.84)
CIE-LCHlch(34.07, 69.10, 300.01°)
OKLaboklab(44.58% 0.0192 -0.1724)
OKLCHoklch(44.58% 0.173 276.4)
XYZxyz(11.9379, 8.0439, 42.5100)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041B1 #B1B040
analogous
#407AB1 #4041B1 #7840B1
triadic
#4041B1 #B14041 #41B140
tetradic
#4041B1 #B1407A #B1B040 #40B178
square
#4041B1 #B1407A #B1B040 #40B178
split-complementary
#4041B1 #B17840 #7AB140
monochromatic
#1F2057 #303084 #4041B1 #6667C8 #9394D8

Accessibility & contrast

On white

8.05
#4041B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4041B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4041B1#FFFFFF#000000##FFFFFF
##4041B11.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4041b1;
/* rgb */ color: rgb(64, 65, 177);
/* oklch */ color: oklch(44.6% 0.173 276.4);
Tailwind
colors: {
  custom: {
    50: '#8276c9',
    500: '#4041b1',
    950: '#000000',
  },
}
SCSS
$custom: #4041b1;
$custom-light: #8276c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4041b1",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 177
  },
  "hsl": {
    "h": 239.469,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44581,
    "c": 0.17347,
    "h": 276.4
  },
  "luminance": 0.08045
}

Semantic roles & 50–950 ramp

primary
#4041B1
secondary
#C3C389
accent
#D551D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4041B1

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

Preview Lab → · Contrast checker → · Palette generator →

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