#4240C7#4240C7

#4240C7 is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.5% C 0.203 H 275.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#4240C7
RGBrgb(66, 64, 199)
HSLhsl(241, 55%, 52%)
HSVhsv(241, 68%, 78%)
CMYKcmyk(66.8%, 67.8%, 0%, 22%)
CIE-LABlab(35.88, 42.83, -69.82)
CIE-LCHlch(35.88, 81.91, 301.53°)
OKLaboklab(46.52% 0.0203 -0.2016)
OKLCHoklch(46.52% 0.203 275.7)
XYZxyz(14.3856, 8.9473, 54.9906)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240C7 #C5C740
analogous
#4082C7 #4240C7 #8640C7
triadic
#4240C7 #C74240 #40C742
tetradic
#4240C7 #C74082 #C5C740 #40C786
square
#4240C7 #C74082 #C5C740 #40C786
split-complementary
#4240C7 #C78640 #82C740
monochromatic
#21206D #2F2E9C #4240C7 #716FD5 #A09FE3

Accessibility & contrast

On white

7.53
#4240C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4240C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240C7
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240C7#FFFFFF#000000##FFFFFF
##4240C71.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#004EC4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4240c7;
/* rgb */ color: rgb(66, 64, 199);
/* oklch */ color: oklch(46.5% 0.203 275.7);
Tailwind
colors: {
  custom: {
    50: '#8776d9',
    500: '#4240c7',
    950: '#000000',
  },
}
SCSS
$custom: #4240c7;
$custom-light: #8776d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4240c7",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 240.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46516,
    "c": 0.20262,
    "h": 275.7
  },
  "luminance": 0.08949
}

Semantic roles & 50–950 ramp

primary
#4240C7
secondary
#CECF94
accent
#DE4ADC
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4240C7

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

Preview Lab → · Contrast checker → · Palette generator →

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