#4240CC#4240CC

#4240CC is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.0% C 0.209 H 275.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#4240CC
RGBrgb(66, 64, 204)
HSLhsl(241, 58%, 53%)
HSVhsv(241, 69%, 80%)
CMYKcmyk(67.6%, 68.6%, 0%, 20%)
CIE-LABlab(36.33, 44.47, -71.99)
CIE-LCHlch(36.33, 84.62, 301.71°)
OKLaboklab(46.98% 0.0196 -0.2079)
OKLCHoklch(46.98% 0.209 275.4)
XYZxyz(14.9757, 9.1833, 58.0984)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240CC #CACC40
analogous
#4084CC #4240CC #8840CC
triadic
#4240CC #CC4240 #40CC42
tetradic
#4240CC #CC4084 #CACC40 #40CC88
square
#4240CC #CC4084 #CACC40 #40CC88
split-complementary
#4240CC #CC8840 #84CC40
monochromatic
#201F73 #2D2CA3 #4240CC #7270D9 #A2A1E6

Accessibility & contrast

On white

7.40
#4240CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4240CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240CC
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240CC#FFFFFF#000000##FFFFFF
##4240CC1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4240cc;
/* rgb */ color: rgb(66, 64, 204);
/* oklch */ color: oklch(47.0% 0.209 275.4);
Tailwind
colors: {
  custom: {
    50: '#8876dd',
    500: '#4240cc',
    950: '#000000',
  },
}
SCSS
$custom: #4240cc;
$custom-light: #8876dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4240cc",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 240.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.46981,
    "c": 0.20885,
    "h": 275.4
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#4240CC
secondary
#D1D295
accent
#E147DF
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4240CC

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

Preview Lab → · Contrast checker → · Palette generator →

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