#4240BB#4240BB

#4240BB is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.187 H 276.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#4240BB
RGBrgb(66, 64, 187)
HSLhsl(241, 49%, 49%)
HSVhsv(241, 66%, 73%)
CMYKcmyk(64.7%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.83, 38.85, -64.52)
CIE-LCHlch(34.83, 75.31, 301.05°)
OKLaboklab(45.43% 0.0216 -0.1861)
OKLCHoklch(45.43% 0.187 276.6)
XYZxyz(13.0469, 8.4118, 47.9402)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240BB #B9BB40
analogous
#407BBB #4240BB #8040BB
triadic
#4240BB #BB4240 #40BB42
tetradic
#4240BB #BB407B #B9BB40 #40BB80
square
#4240BB #BB407B #B9BB40 #40BB80
split-complementary
#4240BB #BB8040 #7BBB40
monochromatic
#222160 #32308D #4240BB #6D6CCD #9A99DC

Accessibility & contrast

On white

7.83
#4240BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4240BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240BB
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240BB#FFFFFF#000000##FFFFFF
##4240BB1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4240bb;
/* rgb */ color: rgb(66, 64, 187);
/* oklch */ color: oklch(45.4% 0.187 276.6);
Tailwind
colors: {
  custom: {
    50: '#8575d0',
    500: '#4240bb',
    950: '#000000',
  },
}
SCSS
$custom: #4240bb;
$custom-light: #8575d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4240bb",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 240.976,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45427,
    "c": 0.18733,
    "h": 276.6
  },
  "luminance": 0.08413
}

Semantic roles & 50–950 ramp

primary
#4240BB
secondary
#C7C88F
accent
#D94FD6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4240BB

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

Preview Lab → · Contrast checker → · Palette generator →

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