#4240D1#4240D1

#4240D1 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.215 H 275.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#4240D1
RGBrgb(66, 64, 209)
HSLhsl(241, 61%, 54%)
HSVhsv(241, 69%, 82%)
CMYKcmyk(68.4%, 69.4%, 0%, 18%)
CIE-LABlab(36.79, 46.11, -74.13)
CIE-LCHlch(36.79, 87.30, 301.88°)
OKLaboklab(47.45% 0.0189 -0.2142)
OKLCHoklch(47.45% 0.215 275.1)
XYZxyz(15.5850, 9.4270, 61.3075)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240D1 #CFD140
analogous
#4086D1 #4240D1 #8A40D1
triadic
#4240D1 #D14240 #40D142
tetradic
#4240D1 #D14086 #CFD140 #40D18A
square
#4240D1 #D14086 #CFD140 #40D18A
split-complementary
#4240D1 #D18A40 #86D140
monochromatic
#1F1D79 #2B29AB #4240D1 #7371DD #A4A3E9

Accessibility & contrast

On white

7.28
#4240D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4240D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240D1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240D1#FFFFFF#000000##FFFFFF
##4240D11.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD5
Deuteranopia (green-blind)
#0050CE
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4240d1;
/* rgb */ color: rgb(66, 64, 209);
/* oklch */ color: oklch(47.4% 0.215 275.1);
Tailwind
colors: {
  custom: {
    50: '#8976e0',
    500: '#4240d1',
    950: '#000000',
  },
}
SCSS
$custom: #4240d1;
$custom-light: #8976e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4240d1",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 240.828,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4745,
    "c": 0.21502,
    "h": 275.1
  },
  "luminance": 0.09428
}

Semantic roles & 50–950 ramp

primary
#4240D1
secondary
#D5D597
accent
#E444E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4240D1

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

Preview Lab → · Contrast checker → · Palette generator →

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