#4240DA#4240DA

#4240DA is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.226 H 274.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4240DA
RGBrgb(66, 64, 218)
HSLhsl(241, 68%, 55%)
HSVhsv(241, 71%, 85%)
CMYKcmyk(69.7%, 70.6%, 0%, 14.5%)
CIE-LABlab(37.64, 49.03, -77.93)
CIE-LCHlch(37.64, 92.07, 302.18°)
OKLaboklab(48.31% 0.0176 -0.2253)
OKLCHoklch(48.31% 0.226 274.5)
XYZxyz(16.7309, 9.8854, 67.3424)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240DA #D8DA40
analogous
#408BDA #4240DA #8F40DA
triadic
#4240DA #DA4240 #40DA42
tetradic
#4240DA #DA408B #D8DA40 #40DA8F
square
#4240DA #DA408B #D8DA40 #40DA8F
split-complementary
#4240DA #DA8F40 #8BDA40
monochromatic
#1B1A86 #2624B9 #4240DA #7573E4 #A7A7EE

Accessibility & contrast

On white

7.05
#4240DA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4240DA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240DA
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240DA#FFFFFF#000000##FFFFFF
##4240DA1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DF
Deuteranopia (green-blind)
#0051D7
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4240da;
/* rgb */ color: rgb(66, 64, 218);
/* oklch */ color: oklch(48.3% 0.226 274.5);
Tailwind
colors: {
  custom: {
    50: '#8b76e7',
    500: '#4240da',
    950: '#000000',
  },
}
SCSS
$custom: #4240da;
$custom-light: #8b76e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4240da",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 240.779,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.48309,
    "c": 0.22598,
    "h": 274.5
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#4240DA
secondary
#DADB9B
accent
#EA3DE8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4240DA

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

Preview Lab → · Contrast checker → · Palette generator →

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