#4041DD#4041DD

#4041DD is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.229 H 273.6°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#4041DD
RGBrgb(64, 65, 221)
HSLhsl(240, 70%, 56%)
HSVhsv(240, 71%, 87%)
CMYKcmyk(71%, 70.6%, 0%, 13.3%)
CIE-LABlab(38.00, 49.23, -79.05)
CIE-LCHlch(38.00, 93.12, 301.91°)
OKLaboklab(48.62% 0.0143 -0.2286)
OKLCHoklch(48.62% 0.229 273.6)
XYZxyz(17.0514, 10.0894, 69.4414)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4041DD #DDDC40
analogous
#408FDD #4041DD #8D40DD
triadic
#4041DD #DD4041 #41DD40
tetradic
#4041DD #DD408F #DDDC40 #40DD8D
square
#4041DD #DD408F #DDDC40 #40DD8D
split-complementary
#4041DD #DD8D40 #8FDD40
monochromatic
#19198A #2223BE #4041DD #7475E6 #A8A8EF

Accessibility & contrast

On white

6.96
#4041DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4041DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4041DD
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4041DD#FFFFFF#000000##FFFFFF
##4041DD1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E2
Deuteranopia (green-blind)
#0052DA
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4041dd;
/* rgb */ color: rgb(64, 65, 221);
/* oklch */ color: oklch(48.6% 0.229 273.6);
Tailwind
colors: {
  custom: {
    50: '#8b77e9',
    500: '#4041dd',
    950: '#000000',
  },
}
SCSS
$custom: #4041dd;
$custom-light: #8b77e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4041dd",
  "rgb": {
    "r": 64,
    "g": 65,
    "b": 221
  },
  "hsl": {
    "h": 239.618,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.48624,
    "c": 0.22906,
    "h": 273.6
  },
  "luminance": 0.10091
}

Semantic roles & 50–950 ramp

primary
#4041DD
secondary
#DDDD9C
accent
#EB3BED
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4041DD

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

Preview Lab → · Contrast checker → · Palette generator →

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