#4242BB#4242BB

#4242BB is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.185 H 276.2°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#4242BB
RGBrgb(66, 66, 187)
HSLhsl(240, 48%, 50%)
HSVhsv(240, 65%, 73%)
CMYKcmyk(64.7%, 64.7%, 0%, 26.7%)
CIE-LABlab(35.28, 37.63, -63.77)
CIE-LCHlch(35.28, 74.04, 300.54°)
OKLaboklab(45.76% 0.0201 -0.1839)
OKLCHoklch(45.76% 0.185 276.2)
XYZxyz(13.1617, 8.6414, 47.9784)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242BB #BBBB42
analogous
#427FBB #4242BB #7F42BB
triadic
#4242BB #BB4242 #42BB42
tetradic
#4242BB #BB427F #BBBB42 #42BB7F
square
#4242BB #BB427F #BBBB42 #42BB7F
split-complementary
#4242BB #BB7F42 #7FBB42
monochromatic
#222261 #32328E #4242BB #6E6ECC #9C9CDC

Accessibility & contrast

On white

7.70
#4242BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4242BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4242BB
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242BB#FFFFFF#000000##FFFFFF
##4242BB1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4242bb;
/* rgb */ color: rgb(66, 66, 187);
/* oklch */ color: oklch(45.8% 0.185 276.2);
Tailwind
colors: {
  custom: {
    50: '#8577d0',
    500: '#4242bb',
    950: '#000000',
  },
}
SCSS
$custom: #4242bb;
$custom-light: #8577d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4242bb",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 240,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45761,
    "c": 0.18496,
    "h": 276.2
  },
  "luminance": 0.08643
}

Semantic roles & 50–950 ramp

primary
#4242BB
secondary
#C8C891
accent
#D750D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4242BB

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

Preview Lab → · Contrast checker → · Palette generator →

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