#4240CE#4240CE

#4240CE is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.2% C 0.211 H 275.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#4240CE
RGBrgb(66, 64, 206)
HSLhsl(241, 59%, 53%)
HSVhsv(241, 69%, 81%)
CMYKcmyk(68%, 68.9%, 0%, 19.2%)
CIE-LABlab(36.52, 45.13, -72.84)
CIE-LCHlch(36.52, 85.69, 301.78°)
OKLaboklab(47.17% 0.0194 -0.2104)
OKLCHoklch(47.17% 0.211 275.3)
XYZxyz(15.2171, 9.2799, 59.3698)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240CE #CCCE40
analogous
#4085CE #4240CE #8940CE
triadic
#4240CE #CE4240 #40CE42
tetradic
#4240CE #CE4085 #CCCE40 #40CE89
square
#4240CE #CE4085 #CCCE40 #40CE89
split-complementary
#4240CE #CE8940 #85CE40
monochromatic
#1F1E75 #2C2BA6 #4240CE #7271DA #A2A1E7

Accessibility & contrast

On white

7.35
#4240CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4240CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240CE
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240CE#FFFFFF#000000##FFFFFF
##4240CE1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#004FCB
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4240ce;
/* rgb */ color: rgb(66, 64, 206);
/* oklch */ color: oklch(47.2% 0.211 275.3);
Tailwind
colors: {
  custom: {
    50: '#8976de',
    500: '#4240ce',
    950: '#000000',
  },
}
SCSS
$custom: #4240ce;
$custom-light: #8976de;
$custom-dark: #000000;
JSON
{
  "hex": "#4240ce",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 240.845,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47168,
    "c": 0.21134,
    "h": 275.3
  },
  "luminance": 0.09281
}

Semantic roles & 50–950 ramp

primary
#4240CE
secondary
#D3D496
accent
#E245E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4240CE

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

Preview Lab → · Contrast checker → · Palette generator →

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