#4242BC#4242BC

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

Color values

HEX#4242BC
RGBrgb(66, 66, 188)
HSLhsl(240, 48%, 50%)
HSVhsv(240, 65%, 74%)
CMYKcmyk(64.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(35.37, 37.96, -64.22)
CIE-LCHlch(35.37, 74.60, 300.59°)
OKLaboklab(45.85% 0.02 -0.1852)
OKLCHoklch(45.85% 0.186 276.2)
XYZxyz(13.2691, 8.6844, 48.5442)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242BC #BCBC42
analogous
#427FBC #4242BC #7F42BC
triadic
#4242BC #BC4242 #42BC42
tetradic
#4242BC #BC427F #BCBC42 #42BC7F
square
#4242BC #BC427F #BCBC42 #42BC7F
split-complementary
#4242BC #BC7F42 #7FBC42
monochromatic
#222261 #32328F #4242BC #6F6FCC #9C9CDC

Accessibility & contrast

On white

7.67
#4242BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4242BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4242BC
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242BC#FFFFFF#000000##FFFFFF
##4242BC1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4242bc;
/* rgb */ color: rgb(66, 66, 188);
/* oklch */ color: oklch(45.8% 0.186 276.2);
Tailwind
colors: {
  custom: {
    50: '#8577d1',
    500: '#4242bc',
    950: '#000000',
  },
}
SCSS
$custom: #4242bc;
$custom-light: #8577d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4242bc",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 240,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45849,
    "c": 0.18626,
    "h": 276.2
  },
  "luminance": 0.08686
}

Semantic roles & 50–950 ramp

primary
#4242BC
secondary
#C9C991
accent
#D850D8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #4242BC

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

Preview Lab → · Contrast checker → · Palette generator →

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