#4240D5#4240D5

#4240D5 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.220 H 274.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#4240D5
RGBrgb(66, 64, 213)
HSLhsl(241, 64%, 54%)
HSVhsv(241, 70%, 84%)
CMYKcmyk(69%, 70%, 0%, 16.5%)
CIE-LABlab(37.17, 47.41, -75.82)
CIE-LCHlch(37.17, 89.43, 302.02°)
OKLaboklab(47.83% 0.0184 -0.2191)
OKLCHoklch(47.83% 0.22 274.8)
XYZxyz(16.0864, 9.6276, 63.9485)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240D5 #D3D540
analogous
#4089D5 #4240D5 #8C40D5
triadic
#4240D5 #D54240 #40D542
tetradic
#4240D5 #D54089 #D3D540 #40D58C
square
#4240D5 #D54089 #D3D540 #40D58C
split-complementary
#4240D5 #D58C40 #89D540
monochromatic
#1D1C7F #2927B1 #4240D5 #7472E0 #A5A4EB

Accessibility & contrast

On white

7.18
#4240D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4240D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240D5
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240D5#FFFFFF#000000##FFFFFF
##4240D51.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED9
Deuteranopia (green-blind)
#0051D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4240d5;
/* rgb */ color: rgb(66, 64, 213);
/* oklch */ color: oklch(47.8% 0.220 274.8);
Tailwind
colors: {
  custom: {
    50: '#8a76e3',
    500: '#4240d5',
    950: '#000000',
  },
}
SCSS
$custom: #4240d5;
$custom-light: #8a76e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4240d5",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 240.805,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.4783,
    "c": 0.21992,
    "h": 274.8
  },
  "luminance": 0.09629
}

Semantic roles & 50–950 ramp

primary
#4240D5
secondary
#D7D899
accent
#E741E5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #4240D5

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

Preview Lab → · Contrast checker → · Palette generator →

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