#4240DD#4240DD

#4240DD is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.6% C 0.230 H 274.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#4240DD
RGBrgb(66, 64, 221)
HSLhsl(241, 70%, 56%)
HSVhsv(241, 71%, 87%)
CMYKcmyk(70.1%, 71%, 0%, 13.3%)
CIE-LABlab(37.92, 49.99, -79.18)
CIE-LCHlch(37.92, 93.64, 302.27°)
OKLaboklab(48.6% 0.0171 -0.2289)
OKLCHoklch(48.6% 0.23 274.3)
XYZxyz(17.1270, 10.0438, 69.4286)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4240DD #DBDD40
analogous
#408CDD #4240DD #9040DD
triadic
#4240DD #DD4240 #40DD42
tetradic
#4240DD #DD408C #DBDD40 #40DD90
square
#4240DD #DD408C #DBDD40 #40DD90
split-complementary
#4240DD #DD9040 #8CDD40
monochromatic
#1A198A #2422BE #4240DD #7574E6 #A9A8EF

Accessibility & contrast

On white

6.98
#4240DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4240DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4240DD
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4240DD#FFFFFF#000000##FFFFFF
##4240DD1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E2
Deuteranopia (green-blind)
#0052DA
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4240dd;
/* rgb */ color: rgb(66, 64, 221);
/* oklch */ color: oklch(48.6% 0.230 274.3);
Tailwind
colors: {
  custom: {
    50: '#8c76e9',
    500: '#4240dd',
    950: '#000000',
  },
}
SCSS
$custom: #4240dd;
$custom-light: #8c76e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4240dd",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 240.764,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.48598,
    "c": 0.22957,
    "h": 274.3
  },
  "luminance": 0.10046
}

Semantic roles & 50–950 ramp

primary
#4240DD
secondary
#DCDD9C
accent
#ED3BEA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4240DD

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

Preview Lab → · Contrast checker → · Palette generator →

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