#4240D9#4240D9

#4240D9 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.225 H 274.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4240D9
RGBrgb(66, 64, 217)
HSLhsl(241, 67%, 55%)
HSVhsv(241, 71%, 85%)
CMYKcmyk(69.6%, 70.5%, 0%, 14.9%)
CIE-LABlab(37.54, 48.71, -77.51)
CIE-LCHlch(37.54, 91.54, 302.15°)
OKLaboklab(48.21% 0.0177 -0.2241)
OKLCHoklch(48.21% 0.225 274.5)
XYZxyz(16.6004, 9.8332, 66.6553)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240D9 #D7D940
analogous
#408BD9 #4240D9 #8E40D9
triadic
#4240D9 #D94240 #40D942
tetradic
#4240D9 #D9408B #D7D940 #40D98E
square
#4240D9 #D9408B #D7D940 #40D98E
split-complementary
#4240D9 #D98E40 #8BD940
monochromatic
#1C1A84 #2624B7 #4240D9 #7573E3 #A7A6ED

Accessibility & contrast

On white

7.08
#4240D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4240D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240D9
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240D9#FFFFFF#000000##FFFFFF
##4240D91.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDE
Deuteranopia (green-blind)
#0051D6
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4240d9;
/* rgb */ color: rgb(66, 64, 217);
/* oklch */ color: oklch(48.2% 0.225 274.5);
Tailwind
colors: {
  custom: {
    50: '#8b76e6',
    500: '#4240d9',
    950: '#000000',
  },
}
SCSS
$custom: #4240d9;
$custom-light: #8b76e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4240d9",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 240.784,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48212,
    "c": 0.22476,
    "h": 274.5
  },
  "luminance": 0.09835
}

Semantic roles & 50–950 ramp

primary
#4240D9
secondary
#DADA9A
accent
#EA3EE7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4240D9

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

Preview Lab → · Contrast checker → · Palette generator →

#4240D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva