#4240CB#4240CB

#4240CB is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.9% C 0.208 H 275.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#4240CB
RGBrgb(66, 64, 203)
HSLhsl(241, 57%, 52%)
HSVhsv(241, 68%, 80%)
CMYKcmyk(67.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.24, 44.15, -71.55)
CIE-LCHlch(36.24, 84.08, 301.67°)
OKLaboklab(46.89% 0.0198 -0.2067)
OKLCHoklch(46.89% 0.208 275.5)
XYZxyz(14.8561, 9.1355, 57.4688)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240CB #C9CB40
analogous
#4084CB #4240CB #8740CB
triadic
#4240CB #CB4240 #40CB42
tetradic
#4240CB #CB4084 #C9CB40 #40CB87
square
#4240CB #CB4084 #C9CB40 #40CB87
split-complementary
#4240CB #CB8740 #84CB40
monochromatic
#201F72 #2E2CA2 #4240CB #7270D8 #A1A0E5

Accessibility & contrast

On white

7.43
#4240CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4240CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240CB
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240CB#FFFFFF#000000##FFFFFF
##4240CB1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#004FC8
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4240cb;
/* rgb */ color: rgb(66, 64, 203);
/* oklch */ color: oklch(46.9% 0.208 275.5);
Tailwind
colors: {
  custom: {
    50: '#8876dc',
    500: '#4240cb',
    950: '#000000',
  },
}
SCSS
$custom: #4240cb;
$custom-light: #8876dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4240cb",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 240.863,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.46887,
    "c": 0.20761,
    "h": 275.5
  },
  "luminance": 0.09137
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4240CB

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

Preview Lab → · Contrast checker → · Palette generator →

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