#4242E0#4242E0

#4242E0 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.231 H 273.9°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#4242E0
RGBrgb(66, 66, 224)
HSLhsl(240, 72%, 57%)
HSVhsv(240, 71%, 88%)
CMYKcmyk(70.5%, 70.5%, 0%, 12.2%)
CIE-LABlab(38.61, 49.84, -79.75)
CIE-LCHlch(38.61, 94.04, 302.00°)
OKLaboklab(49.18% 0.0156 -0.2306)
OKLCHoklch(49.18% 0.231 273.9)
XYZxyz(17.6450, 10.4348, 71.5908)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242E0 #E0E042
analogous
#4291E0 #4242E0 #9142E0
triadic
#4242E0 #E04242 #42E042
tetradic
#4242E0 #E04291 #E0E042 #42E091
square
#4242E0 #E04291 #E0E042 #42E091
split-complementary
#4242E0 #E09142 #91E042
monochromatic
#181890 #2020C5 #4242E0 #7777E9 #ABABF1

Accessibility & contrast

On white

6.80
#4242E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4242E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4242E0
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242E0#FFFFFF#000000##FFFFFF
##4242E01.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E5
Deuteranopia (green-blind)
#0053DD
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4242e0;
/* rgb */ color: rgb(66, 66, 224);
/* oklch */ color: oklch(49.2% 0.231 273.9);
Tailwind
colors: {
  custom: {
    50: '#8c78eb',
    500: '#4242e0',
    950: '#000000',
  },
}
SCSS
$custom: #4242e0;
$custom-light: #8c78eb;
$custom-dark: #000000;
JSON
{
  "hex": "#4242e0",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 240,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.49178,
    "c": 0.23115,
    "h": 273.9
  },
  "luminance": 0.10436
}

Semantic roles & 50–950 ramp

primary
#4242E0
secondary
#DFDF9F
accent
#EF39EF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4242E0

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

Preview Lab → · Contrast checker → · Palette generator →

#4242E0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva