#4240C1#4240C1

#4240C1 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.0% C 0.195 H 276.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#4240C1
RGBrgb(66, 64, 193)
HSLhsl(241, 51%, 50%)
HSVhsv(241, 67%, 76%)
CMYKcmyk(65.8%, 66.8%, 0%, 24.3%)
CIE-LABlab(35.35, 40.84, -67.19)
CIE-LCHlch(35.35, 78.63, 301.30°)
OKLaboklab(45.97% 0.021 -0.1939)
OKLCHoklch(45.97% 0.195 276.2)
XYZxyz(13.7027, 8.6741, 51.3939)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240C1 #BFC140
analogous
#407FC1 #4240C1 #8240C1
triadic
#4240C1 #C14240 #40C142
tetradic
#4240C1 #C1407F #BFC140 #40C182
square
#4240C1 #C1407F #BFC140 #40C182
split-complementary
#4240C1 #C18240 #7FC140
monochromatic
#222166 #323094 #4240C1 #706ED0 #9D9CDF

Accessibility & contrast

On white

7.68
#4240C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4240C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240C1
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240C1#FFFFFF#000000##FFFFFF
##4240C11.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4240c1;
/* rgb */ color: rgb(66, 64, 193);
/* oklch */ color: oklch(46.0% 0.195 276.2);
Tailwind
colors: {
  custom: {
    50: '#8675d5',
    500: '#4240c1',
    950: '#000000',
  },
}
SCSS
$custom: #4240c1;
$custom-light: #8675d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4240c1",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 240.93,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45967,
    "c": 0.19503,
    "h": 276.2
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

primary
#4240C1
secondary
#CACB92
accent
#DA4DD8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4240C1

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

Preview Lab → · Contrast checker → · Palette generator →

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