#4242CE#4242CE

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

Color values

HEX#4242CE
RGBrgb(66, 66, 206)
HSLhsl(240, 59%, 53%)
HSVhsv(240, 68%, 81%)
CMYKcmyk(68%, 68%, 0%, 19.2%)
CIE-LABlab(36.95, 43.96, -72.14)
CIE-LCHlch(36.95, 84.48, 301.36°)
OKLaboklab(47.48% 0.0181 -0.2084)
OKLCHoklch(47.48% 0.209 275)
XYZxyz(15.3319, 9.5095, 59.4081)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242CE #CECE42
analogous
#4288CE #4242CE #8842CE
triadic
#4242CE #CE4242 #42CE42
tetradic
#4242CE #CE4288 #CECE42 #42CE88
square
#4242CE #CE4288 #CECE42 #42CE88
split-complementary
#4242CE #CE8842 #88CE42
monochromatic
#1F1F77 #2B2BA7 #4242CE #7373DB #A3A3E7

Accessibility & contrast

On white

7.24
#4242CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4242CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4242CE
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242CE#FFFFFF#000000##FFFFFF
##4242CE1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0050CB
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4242ce;
/* rgb */ color: rgb(66, 66, 206);
/* oklch */ color: oklch(47.5% 0.209 275.0);
Tailwind
colors: {
  custom: {
    50: '#8877de',
    500: '#4242ce',
    950: '#000000',
  },
}
SCSS
$custom: #4242ce;
$custom-light: #8877de;
$custom-dark: #000000;
JSON
{
  "hex": "#4242ce",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 240,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.47477,
    "c": 0.20916,
    "h": 275
  },
  "luminance": 0.09511
}

Semantic roles & 50–950 ramp

primary
#4242CE
secondary
#D4D498
accent
#E246E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4242CE

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

Preview Lab → · Contrast checker → · Palette generator →

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