#4040DD#4040DD

#4040DD is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.230 H 273.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#4040DD
RGBrgb(64, 64, 221)
HSLhsl(240, 70%, 56%)
HSVhsv(240, 71%, 87%)
CMYKcmyk(71%, 71%, 0%, 13.3%)
CIE-LABlab(37.80, 49.79, -79.38)
CIE-LCHlch(37.80, 93.71, 302.10°)
OKLaboklab(48.48% 0.0148 -0.2296)
OKLCHoklch(48.48% 0.23 273.7)
XYZxyz(16.9945, 9.9756, 69.4224)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4040DD #DDDD40
analogous
#408EDD #4040DD #8E40DD
triadic
#4040DD #DD4040 #40DD40
tetradic
#4040DD #DD408E #DDDD40 #40DD8E
square
#4040DD #DD408E #DDDD40 #40DD8E
split-complementary
#4040DD #DD8E40 #8EDD40
monochromatic
#19198A #2222BE #4040DD #7474E6 #A8A8EF

Accessibility & contrast

On white

7.01
#4040DD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4040DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4040DD
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4040DD#FFFFFF#000000##FFFFFF
##4040DD1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E2
Deuteranopia (green-blind)
#0051DA
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4040dd;
/* rgb */ color: rgb(64, 64, 221);
/* oklch */ color: oklch(48.5% 0.230 273.7);
Tailwind
colors: {
  custom: {
    50: '#8b76e9',
    500: '#4040dd',
    950: '#000000',
  },
}
SCSS
$custom: #4040dd;
$custom-light: #8b76e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4040dd",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 240,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.48478,
    "c": 0.23006,
    "h": 273.7
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4040DD

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

Preview Lab → · Contrast checker → · Palette generator →

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