#42428E#42428E

#42428E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.123 H 279.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#42428E
RGBrgb(66, 66, 142)
HSLhsl(240, 37%, 41%)
HSVhsv(240, 54%, 56%)
CMYKcmyk(53.5%, 53.5%, 0%, 44.3%)
CIE-LABlab(31.82, 22.40, -42.35)
CIE-LCHlch(31.82, 47.91, 297.88°)
OKLaboklab(42.12% 0.0208 -0.1209)
OKLCHoklch(42.12% 0.123 279.8)
XYZxyz(9.0760, 7.0071, 26.4602)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42428E #8E8E42
analogous
#42688E #42428E #68428E
triadic
#42428E #8E4242 #428E42
tetradic
#42428E #8E4268 #8E8E42 #428E68
square
#42428E #8E4268 #8E8E42 #428E68
split-complementary
#42428E #8E6842 #688E42
monochromatic
#1B1B3A #2F2F64 #42428E #5B5BB3 #8484C6

Accessibility & contrast

On white

8.74
#42428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#42428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42428E
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42428E#FFFFFF#000000##FFFFFF
##42428E1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4E91
Deuteranopia (green-blind)
#10488C
Tritanopia (blue-blind)
#225361
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #42428e;
/* rgb */ color: rgb(66, 66, 142);
/* oklch */ color: oklch(42.1% 0.123 279.8);
Tailwind
colors: {
  custom: {
    50: '#7c76b0',
    500: '#42428e',
    950: '#000000',
  },
}
SCSS
$custom: #42428e;
$custom-light: #7c76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42428e",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 240,
    "s": 36.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42115,
    "c": 0.12269,
    "h": 279.8
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#42428E
secondary
#B1B17B
accent
#CD5BCD
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #42428E

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

Preview Lab → · Contrast checker → · Palette generator →

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