#42428F#42428F

#42428F is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.124 H 279.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#42428F
RGBrgb(66, 66, 143)
HSLhsl(240, 37%, 41%)
HSVhsv(240, 54%, 56%)
CMYKcmyk(53.8%, 53.8%, 0%, 43.9%)
CIE-LABlab(31.89, 22.74, -42.86)
CIE-LCHlch(31.89, 48.52, 297.95°)
OKLaboklab(42.19% 0.0209 -0.1224)
OKLCHoklch(42.19% 0.124 279.7)
XYZxyz(9.1514, 7.0373, 26.8574)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42428F #8F8F42
analogous
#42688F #42428F #68428F
triadic
#42428F #8F4242 #428F42
tetradic
#42428F #8F4268 #8F8F42 #428F68
square
#42428F #8F4268 #8F8F42 #428F68
split-complementary
#42428F #8F6842 #688F42
monochromatic
#1B1B3B #2F2F65 #42428F #5B5BB3 #8585C7

Accessibility & contrast

On white

8.72
#42428F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#42428F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42428F
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42428F#FFFFFF#000000##FFFFFF
##42428F1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184E92
Deuteranopia (green-blind)
#0E488D
Tritanopia (blue-blind)
#215362
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #42428f;
/* rgb */ color: rgb(66, 66, 143);
/* oklch */ color: oklch(42.2% 0.124 279.7);
Tailwind
colors: {
  custom: {
    50: '#7d76b0',
    500: '#42428f',
    950: '#000000',
  },
}
SCSS
$custom: #42428f;
$custom-light: #7d76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42428f",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 36.842,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42189,
    "c": 0.12416,
    "h": 279.7
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42428F

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

Preview Lab → · Contrast checker → · Palette generator →

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