#42427F#42427F

#42427F is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.1% C 0.100 H 281.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#42427F
RGBrgb(66, 66, 127)
HSLhsl(240, 32%, 38%)
HSVhsv(240, 48%, 50%)
CMYKcmyk(48%, 48%, 0%, 50.2%)
CIE-LABlab(30.85, 17.42, -34.64)
CIE-LCHlch(30.85, 38.78, 296.70°)
OKLaboklab(41.07% 0.0192 -0.0983)
OKLCHoklch(41.07% 0.1 281.1)
XYZxyz(8.0246, 6.5866, 20.9231)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42427F #7F7F42
analogous
#42607F #42427F #60427F
triadic
#42427F #7F4242 #427F42
tetradic
#42427F #7F4260 #7F7F42 #427F60
square
#42427F #7F4260 #7F7F42 #427F60
split-complementary
#42427F #7F6042 #607F42
monochromatic
#18182E #2D2D57 #42427F #5757A7 #7F7FBC

Accessibility & contrast

On white

9.06
#42427F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#42427F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42427F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42427F#FFFFFF#000000##FFFFFF
##42427F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294B81
Deuteranopia (green-blind)
#25467E
Tritanopia (blue-blind)
#2D4F5A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #42427f;
/* rgb */ color: rgb(66, 66, 127);
/* oklch */ color: oklch(41.1% 0.100 281.1);
Tailwind
colors: {
  custom: {
    50: '#7a76a4',
    500: '#42427f',
    950: '#000000',
  },
}
SCSS
$custom: #42427f;
$custom-light: #7a76a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42427f",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 31.606,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41065,
    "c": 0.10013,
    "h": 281.1
  },
  "luminance": 0.06587
}

Semantic roles & 50–950 ramp

primary
#42427F
secondary
#A7A775
accent
#C860C8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42427F

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

Preview Lab → · Contrast checker → · Palette generator →

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