#4242AC#4242AC

#4242AC is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.165 H 277.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#4242AC
RGBrgb(66, 66, 172)
HSLhsl(240, 45%, 47%)
HSVhsv(240, 62%, 67%)
CMYKcmyk(61.6%, 61.6%, 0%, 32.5%)
CIE-LABlab(34.05, 32.56, -56.90)
CIE-LCHlch(34.05, 65.55, 299.78°)
OKLaboklab(44.47% 0.0211 -0.1637)
OKLCHoklch(44.47% 0.165 277.3)
XYZxyz(11.6390, 8.0323, 39.9588)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4242AC #ACAC42
analogous
#4277AC #4242AC #7742AC
triadic
#4242AC #AC4242 #42AC42
tetradic
#4242AC #AC4277 #ACAC42 #42AC77
square
#4242AC #AC4277 #ACAC42 #42AC77
split-complementary
#4242AC #AC7742 #77AC42
monochromatic
#202054 #313180 #4242AC #6767C5 #9393D6

Accessibility & contrast

On white

8.06
#4242AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4242AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4242AC
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4242AC#FFFFFF#000000##FFFFFF
##4242AC1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#004CAA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4242ac;
/* rgb */ color: rgb(66, 66, 172);
/* oklch */ color: oklch(44.5% 0.165 277.3);
Tailwind
colors: {
  custom: {
    50: '#8276c6',
    500: '#4242ac',
    950: '#000000',
  },
}
SCSS
$custom: #4242ac;
$custom-light: #8276c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4242ac",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 240,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44473,
    "c": 0.16504,
    "h": 277.3
  },
  "luminance": 0.08033
}

Semantic roles & 50–950 ramp

primary
#4242AC
secondary
#C1C189
accent
#D454D4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #4242AC

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

Preview Lab → · Contrast checker → · Palette generator →

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