#4041B5#4041B5

#4041B5 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.179 H 276.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#4041B5
RGBrgb(64, 65, 181)
HSLhsl(239, 48%, 48%)
HSVhsv(239, 65%, 71%)
CMYKcmyk(64.6%, 64.1%, 0%, 29%)
CIE-LABlab(34.41, 35.92, -61.67)
CIE-LCHlch(34.41, 71.37, 300.22°)
OKLaboklab(44.93% 0.0189 -0.1778)
OKLCHoklch(44.93% 0.179 276.1)
XYZxyz(12.3424, 8.2057, 44.6405)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041B5 #B5B440
analogous
#407BB5 #4041B5 #7940B5
triadic
#4041B5 #B54041 #41B540
tetradic
#4041B5 #B5407B #B5B440 #40B579
square
#4041B5 #B5407B #B5B440 #40B579
split-complementary
#4041B5 #B57940 #7BB540
monochromatic
#20215B #303188 #4041B5 #6869CA #9696DA

Accessibility & contrast

On white

7.95
#4041B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4041B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4041B5#FFFFFF#000000##FFFFFF
##4041B51.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4041b5;
/* rgb */ color: rgb(64, 65, 181);
/* oklch */ color: oklch(44.9% 0.179 276.1);
Tailwind
colors: {
  custom: {
    50: '#8276cc',
    500: '#4041b5',
    950: '#000000',
  },
}
SCSS
$custom: #4041b5;
$custom-light: #8276cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4041b5",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 239.487,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44928,
    "c": 0.17877,
    "h": 276.1
  },
  "luminance": 0.08207
}

Semantic roles & 50–950 ramp

primary
#4041B5
secondary
#C5C58B
accent
#D650D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4041B5

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

Preview Lab → · Contrast checker → · Palette generator →

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