#42428B#42428B

#42428B is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.9% C 0.118 H 280.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#42428B
RGBrgb(66, 66, 139)
HSLhsl(240, 36%, 40%)
HSVhsv(240, 53%, 55%)
CMYKcmyk(52.5%, 52.5%, 0%, 45.5%)
CIE-LABlab(31.62, 21.40, -40.84)
CIE-LCHlch(31.62, 46.10, 297.65°)
OKLaboklab(41.9% 0.0206 -0.1165)
OKLCHoklch(41.9% 0.118 280)
XYZxyz(8.8537, 6.9183, 25.2899)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42428B #8B8B42
analogous
#42668B #42428B #66428B
triadic
#42428B #8B4242 #428B42
tetradic
#42428B #8B4266 #8B8B42 #428B66
square
#42428B #8B4266 #8B8B42 #428B66
split-complementary
#42428B #8B6642 #668B42
monochromatic
#1B1B38 #2E2E62 #42428B #5A5AB1 #8383C4

Accessibility & contrast

On white

8.81
#42428B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#42428B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42428B
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42428B#FFFFFF#000000##FFFFFF
##42428B1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8E
Deuteranopia (green-blind)
#164889
Tritanopia (blue-blind)
#245260
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #42428b;
/* rgb */ color: rgb(66, 66, 139);
/* oklch */ color: oklch(41.9% 0.118 280.0);
Tailwind
colors: {
  custom: {
    50: '#7c76ad',
    500: '#42428b',
    950: '#000000',
  },
}
SCSS
$custom: #42428b;
$custom-light: #7c76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#42428b",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 35.61,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41898,
    "c": 0.11826,
    "h": 280
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

primary
#42428B
secondary
#AFAF7A
accent
#CC5CCC
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #42428B

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

Preview Lab → · Contrast checker → · Palette generator →

#42428B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva