#4041D2#4041D2

#4041D2 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.216 H 274.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#4041D2
RGBrgb(64, 65, 210)
HSLhsl(240, 62%, 54%)
HSVhsv(240, 70%, 82%)
CMYKcmyk(69.5%, 69%, 0%, 17.6%)
CIE-LABlab(36.97, 45.63, -74.42)
CIE-LCHlch(36.97, 87.29, 301.52°)
OKLaboklab(47.57% 0.0158 -0.2151)
OKLCHoklch(47.57% 0.216 274.2)
XYZxyz(15.6336, 9.5222, 61.9743)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041D2 #D2D140
analogous
#408AD2 #4041D2 #8840D2
triadic
#4041D2 #D24041 #41D240
tetradic
#4041D2 #D2408A #D2D140 #40D288
square
#4041D2 #D2408A #D2D140 #40D288
split-complementary
#4041D2 #D28840 #8AD240
monochromatic
#1D1E7B #2929AC #4041D2 #7272DE #A3A4E9

Accessibility & contrast

On white

7.23
#4041D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4041D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4041D2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041D2#FFFFFF#000000##FFFFFF
##4041D21.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0050CF
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4041d2;
/* rgb */ color: rgb(64, 65, 210);
/* oklch */ color: oklch(47.6% 0.216 274.2);
Tailwind
colors: {
  custom: {
    50: '#8877e1',
    500: '#4041d2',
    950: '#000000',
  },
}
SCSS
$custom: #4041d2;
$custom-light: #8877e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4041d2",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 239.589,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.47572,
    "c": 0.21568,
    "h": 274.2
  },
  "luminance": 0.09524
}

Semantic roles & 50–950 ramp

primary
#4041D2
secondary
#D6D698
accent
#E443E5
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #4041D2

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

Preview Lab → · Contrast checker → · Palette generator →

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