#4242D5#4242D5

#4242D5 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.1% C 0.218 H 274.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4242D5
RGBrgb(66, 66, 213)
HSLhsl(240, 64%, 55%)
HSVhsv(240, 69%, 84%)
CMYKcmyk(69%, 69%, 0%, 16.5%)
CIE-LABlab(37.58, 46.26, -75.13)
CIE-LCHlch(37.58, 88.23, 301.62°)
OKLaboklab(48.13% 0.0171 -0.2171)
OKLCHoklch(48.13% 0.218 274.5)
XYZxyz(16.2012, 9.8572, 63.9867)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242D5 #D5D542
analogous
#428CD5 #4242D5 #8C42D5
triadic
#4242D5 #D54242 #42D542
tetradic
#4242D5 #D5428C #D5D542 #42D58C
square
#4242D5 #D5428C #D5D542 #42D58C
split-complementary
#4242D5 #D58C42 #8CD542
monochromatic
#1C1C80 #2828B2 #4242D5 #7474E0 #A6A6EB

Accessibility & contrast

On white

7.07
#4242D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4242D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4242D5
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242D5#FFFFFF#000000##FFFFFF
##4242D51.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0052D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4242d5;
/* rgb */ color: rgb(66, 66, 213);
/* oklch */ color: oklch(48.1% 0.218 274.5);
Tailwind
colors: {
  custom: {
    50: '#8a77e3',
    500: '#4242d5',
    950: '#000000',
  },
}
SCSS
$custom: #4242d5;
$custom-light: #8a77e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4242d5",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 240,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48131,
    "c": 0.21782,
    "h": 274.5
  },
  "luminance": 0.09859
}

Semantic roles & 50–950 ramp

primary
#4242D5
secondary
#D8D89A
accent
#E741E7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #4242D5

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

Preview Lab → · Contrast checker → · Palette generator →

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