#4041BA#4041BA

#4041BA is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.185 H 275.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#4041BA
RGBrgb(64, 65, 186)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 66%, 73%)
CMYKcmyk(65.6%, 65.1%, 0%, 27.1%)
CIE-LABlab(34.83, 37.62, -63.93)
CIE-LCHlch(34.83, 74.17, 300.47°)
OKLaboklab(45.37% 0.0185 -0.1844)
OKLCHoklch(45.37% 0.185 275.7)
XYZxyz(12.8647, 8.4146, 47.3911)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041BA #BAB940
analogous
#407EBA #4041BA #7C40BA
triadic
#4041BA #BA4041 #41BA40
tetradic
#4041BA #BA407E #BAB940 #40BA7C
square
#4041BA #BA407E #BAB940 #40BA7C
split-complementary
#4041BA #BA7C40 #7EBA40
monochromatic
#21215F #30318C #4041BA #6B6CCC #9999DC

Accessibility & contrast

On white

7.83
#4041BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4041BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041BA
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041BA#FFFFFF#000000##FFFFFF
##4041BA1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4041ba;
/* rgb */ color: rgb(64, 65, 186);
/* oklch */ color: oklch(45.4% 0.185 275.7);
Tailwind
colors: {
  custom: {
    50: '#8376d0',
    500: '#4041ba',
    950: '#000000',
  },
}
SCSS
$custom: #4041ba;
$custom-light: #8376d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4041ba",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 239.508,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45369,
    "c": 0.18532,
    "h": 275.7
  },
  "luminance": 0.08416
}

Semantic roles & 50–950 ramp

primary
#4041BA
secondary
#C8C78E
accent
#D74FD8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4041BA

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

Preview Lab → · Contrast checker → · Palette generator →

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