#42477F#42477F

#42477F is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.1% C 0.093 H 277.8°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#42477F
RGBrgb(66, 71, 127)
HSLhsl(235, 32%, 38%)
HSVhsv(235, 48%, 50%)
CMYKcmyk(48%, 44.1%, 0%, 50.2%)
CIE-LABlab(32.25, 14.12, -32.41)
CIE-LCHlch(32.25, 35.35, 293.54°)
OKLaboklab(42.13% 0.0125 -0.0917)
OKLCHoklch(42.13% 0.093 277.8)
XYZxyz(8.3296, 7.1966, 21.0247)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42477F #7F7A42
analogous
#42657F #42477F #5B427F
triadic
#42477F #7F4247 #477F42
tetradic
#42477F #7F4265 #7F7A42 #427F5B
square
#42477F #7F4265 #7F7A42 #427F5B
split-complementary
#42477F #7F5B42 #657F42
monochromatic
#181A2E #2D3057 #42477F #575EA7 #7F84BC

Accessibility & contrast

On white

8.61
#42477F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#42477F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42477F
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42477F#FFFFFF#000000##FFFFFF
##42477F1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314E81
Deuteranopia (green-blind)
#2D4A7E
Tritanopia (blue-blind)
#2C535D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #42477f;
/* rgb */ color: rgb(66, 71, 127);
/* oklch */ color: oklch(42.1% 0.093 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a7aa4',
    500: '#42477f',
    950: '#000000',
  },
}
SCSS
$custom: #42477f;
$custom-light: #7a7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42477f",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 127
  },
  "hsl": {
    "h": 235.082,
    "s": 31.606,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42132,
    "c": 0.09255,
    "h": 277.8
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

primary
#42477F
secondary
#A7A375
accent
#BF60C8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #42477F

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

Preview Lab → · Contrast checker → · Palette generator →

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