#4041D1#4041D1

#4041D1 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.214 H 274.3°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#4041D1
RGBrgb(64, 65, 209)
HSLhsl(240, 61%, 54%)
HSVhsv(240, 69%, 82%)
CMYKcmyk(69.4%, 68.9%, 0%, 18%)
CIE-LABlab(36.88, 45.30, -73.99)
CIE-LCHlch(36.88, 86.76, 301.48°)
OKLaboklab(47.48% 0.016 -0.2138)
OKLCHoklch(47.48% 0.214 274.3)
XYZxyz(15.5095, 9.4726, 61.3203)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041D1 #D1D040
analogous
#4089D1 #4041D1 #8740D1
triadic
#4041D1 #D14041 #41D140
tetradic
#4041D1 #D14089 #D1D040 #40D187
square
#4041D1 #D14089 #D1D040 #40D187
split-complementary
#4041D1 #D18740 #89D140
monochromatic
#1D1E79 #292AAB #4041D1 #7172DD #A3A3E9

Accessibility & contrast

On white

7.25
#4041D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4041D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041D1
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041D1#FFFFFF#000000##FFFFFF
##4041D11.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0050CE
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4041d1;
/* rgb */ color: rgb(64, 65, 209);
/* oklch */ color: oklch(47.5% 0.214 274.3);
Tailwind
colors: {
  custom: {
    50: '#8877e0',
    500: '#4041d1',
    950: '#000000',
  },
}
SCSS
$custom: #4041d1;
$custom-light: #8877e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4041d1",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 209
  },
  "hsl": {
    "h": 239.586,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47478,
    "c": 0.21444,
    "h": 274.3
  },
  "luminance": 0.09474
}

Semantic roles & 50–950 ramp

primary
#4041D1
secondary
#D5D597
accent
#E344E4
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4041D1

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

Preview Lab → · Contrast checker → · Palette generator →

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