#4240D6#4240D6

#4240D6 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.221 H 274.7°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#4240D6
RGBrgb(66, 64, 214)
HSLhsl(241, 65%, 55%)
HSVhsv(241, 70%, 84%)
CMYKcmyk(69.2%, 70.1%, 0%, 16.1%)
CIE-LABlab(37.26, 47.73, -76.25)
CIE-LCHlch(37.26, 89.96, 302.05°)
OKLaboklab(47.93% 0.0182 -0.2204)
OKLCHoklch(47.93% 0.221 274.7)
XYZxyz(16.2137, 9.6786, 64.6190)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240D6 #D4D640
analogous
#4089D6 #4240D6 #8D40D6
triadic
#4240D6 #D64240 #40D642
tetradic
#4240D6 #D64089 #D4D640 #40D68D
square
#4240D6 #D64089 #D4D640 #40D68D
split-complementary
#4240D6 #D68D40 #89D640
monochromatic
#1D1B80 #2826B2 #4240D6 #7472E1 #A6A5EC

Accessibility & contrast

On white

7.15
#4240D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4240D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240D6
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240D6#FFFFFF#000000##FFFFFF
##4240D61.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDA
Deuteranopia (green-blind)
#0051D3
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4240d6;
/* rgb */ color: rgb(66, 64, 214);
/* oklch */ color: oklch(47.9% 0.221 274.7);
Tailwind
colors: {
  custom: {
    50: '#8a76e4',
    500: '#4240d6',
    950: '#000000',
  },
}
SCSS
$custom: #4240d6;
$custom-light: #8a76e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4240d6",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 240.8,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.47925,
    "c": 0.22113,
    "h": 274.7
  },
  "luminance": 0.0968
}

Semantic roles & 50–950 ramp

primary
#4240D6
secondary
#D8D999
accent
#E840E5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #4240D6

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

Preview Lab → · Contrast checker → · Palette generator →

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