#4240C8#4240C8

#4240C8 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.6% C 0.204 H 275.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#4240C8
RGBrgb(66, 64, 200)
HSLhsl(241, 55%, 52%)
HSVhsv(241, 68%, 78%)
CMYKcmyk(67%, 68%, 0%, 21.6%)
CIE-LABlab(35.97, 43.16, -70.25)
CIE-LCHlch(35.97, 82.45, 301.56°)
OKLaboklab(46.61% 0.0202 -0.2029)
OKLCHoklch(46.61% 0.204 275.7)
XYZxyz(14.5021, 8.9939, 55.6041)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240C8 #C6C840
analogous
#4082C8 #4240C8 #8640C8
triadic
#4240C8 #C84240 #40C842
tetradic
#4240C8 #C84082 #C6C840 #40C886
square
#4240C8 #C84082 #C6C840 #40C886
split-complementary
#4240C8 #C88640 #82C840
monochromatic
#21206E #2F2D9D #4240C8 #7170D6 #A09FE3

Accessibility & contrast

On white

7.50
#4240C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4240C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240C8
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240C8#FFFFFF#000000##FFFFFF
##4240C81.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4240c8;
/* rgb */ color: rgb(66, 64, 200);
/* oklch */ color: oklch(46.6% 0.204 275.7);
Tailwind
colors: {
  custom: {
    50: '#8776da',
    500: '#4240c8',
    950: '#000000',
  },
}
SCSS
$custom: #4240c8;
$custom-light: #8776da;
$custom-dark: #000000;
JSON
{
  "hex": "#4240c8",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 240.882,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.46609,
    "c": 0.20387,
    "h": 275.7
  },
  "luminance": 0.08995
}

Semantic roles & 50–950 ramp

primary
#4240C8
secondary
#CFD094
accent
#DF49DC
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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