#4242DC#4242DC

#4242DC is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.8% C 0.226 H 274.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#4242DC
RGBrgb(66, 66, 220)
HSLhsl(240, 69%, 56%)
HSVhsv(240, 70%, 86%)
CMYKcmyk(70%, 70%, 0%, 13.7%)
CIE-LABlab(38.23, 48.54, -78.09)
CIE-LCHlch(38.23, 91.94, 301.87°)
OKLaboklab(48.8% 0.0162 -0.2258)
OKLCHoklch(48.8% 0.226 274.1)
XYZxyz(17.1090, 10.2203, 68.7673)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242DC #DCDC42
analogous
#428FDC #4242DC #8F42DC
triadic
#4242DC #DC4242 #42DC42
tetradic
#4242DC #DC428F #DCDC42 #42DC8F
square
#4242DC #DC428F #DCDC42 #42DC8F
split-complementary
#4242DC #DC8F42 #8FDC42
monochromatic
#1A1A8A #2323BE #4242DC #7676E6 #A9A9EF

Accessibility & contrast

On white

6.90
#4242DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4242DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4242DC
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242DC#FFFFFF#000000##FFFFFF
##4242DC1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E1
Deuteranopia (green-blind)
#0053D9
Tritanopia (blue-blind)
#006D8A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4242dc;
/* rgb */ color: rgb(66, 66, 220);
/* oklch */ color: oklch(48.8% 0.226 274.1);
Tailwind
colors: {
  custom: {
    50: '#8b78e8',
    500: '#4242dc',
    950: '#000000',
  },
}
SCSS
$custom: #4242dc;
$custom-light: #8b78e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4242dc",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 240,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.48795,
    "c": 0.22634,
    "h": 274.1
  },
  "luminance": 0.10222
}

Semantic roles & 50–950 ramp

primary
#4242DC
secondary
#DDDD9D
accent
#EC3CEC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4242DC

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

Preview Lab → · Contrast checker → · Palette generator →

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