#4240DF#4240DF

#4240DF is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.232 H 274.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#4240DF
RGBrgb(66, 64, 223)
HSLhsl(241, 71%, 56%)
HSVhsv(241, 71%, 87%)
CMYKcmyk(70.4%, 71.3%, 0%, 12.5%)
CIE-LABlab(38.11, 50.64, -80.00)
CIE-LCHlch(38.11, 94.68, 302.33°)
OKLaboklab(48.79% 0.0168 -0.2313)
OKLCHoklch(48.79% 0.232 274.2)
XYZxyz(17.3950, 10.1511, 70.8404)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240DF #DDDF40
analogous
#408EDF #4240DF #9240DF
triadic
#4240DF #DF4240 #40DF42
tetradic
#4240DF #DF408E #DDDF40 #40DF92
square
#4240DF #DF408E #DDDF40 #40DF92
split-complementary
#4240DF #DF9240 #8EDF40
monochromatic
#19188D #2220C1 #4240DF #7674E8 #AAA9F1

Accessibility & contrast

On white

6.93
#4240DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#4240DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4240DF
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240DF#FFFFFF#000000##FFFFFF
##4240DF1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E4
Deuteranopia (green-blind)
#0052DC
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4240df;
/* rgb */ color: rgb(66, 64, 223);
/* oklch */ color: oklch(48.8% 0.232 274.2);
Tailwind
colors: {
  custom: {
    50: '#8c76ea',
    500: '#4240df',
    950: '#000000',
  },
}
SCSS
$custom: #4240df;
$custom-light: #8c76ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4240df",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 240.755,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.23196,
    "h": 274.2
  },
  "luminance": 0.10153
}

Semantic roles & 50–950 ramp

primary
#4240DF
secondary
#DDDE9D
accent
#EE3AEC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4240DF

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

Preview Lab → · Contrast checker → · Palette generator →

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