#4240D2#4240D2

#4240D2 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.216 H 275.0°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#4240D2
RGBrgb(66, 64, 210)
HSLhsl(241, 62%, 54%)
HSVhsv(241, 70%, 82%)
CMYKcmyk(68.6%, 69.5%, 0%, 17.6%)
CIE-LABlab(36.89, 46.44, -74.55)
CIE-LCHlch(36.89, 87.83, 301.92°)
OKLaboklab(47.55% 0.0188 -0.2154)
OKLCHoklch(47.55% 0.216 275)
XYZxyz(15.7092, 9.4767, 61.9616)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240D2 #D0D240
analogous
#4087D2 #4240D2 #8B40D2
triadic
#4240D2 #D24240 #40D242
tetradic
#4240D2 #D24087 #D0D240 #40D28B
square
#4240D2 #D24087 #D0D240 #40D28B
split-complementary
#4240D2 #D28B40 #87D240
monochromatic
#1E1D7B #2A29AC #4240D2 #7372DE #A4A3E9

Accessibility & contrast

On white

7.25
#4240D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4240D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4240D2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240D2#FFFFFF#000000##FFFFFF
##4240D21.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4240d2;
/* rgb */ color: rgb(66, 64, 210);
/* oklch */ color: oklch(47.5% 0.216 275.0);
Tailwind
colors: {
  custom: {
    50: '#8976e1',
    500: '#4240d2',
    950: '#000000',
  },
}
SCSS
$custom: #4240d2;
$custom-light: #8976e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4240d2",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 240.822,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.47545,
    "c": 0.21626,
    "h": 275
  },
  "luminance": 0.09478
}

Semantic roles & 50–950 ramp

primary
#4240D2
secondary
#D5D698
accent
#E543E3
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #4240D2

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

Preview Lab → · Contrast checker → · Palette generator →

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