#42477E#42477E

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

Color values

HEX#42477E
RGBrgb(66, 71, 126)
HSLhsl(235, 31%, 38%)
HSVhsv(235, 48%, 49%)
CMYKcmyk(47.6%, 43.7%, 0%, 50.6%)
CIE-LABlab(32.19, 13.79, -31.88)
CIE-LCHlch(32.19, 34.73, 293.39°)
OKLaboklab(42.07% 0.0123 -0.0901)
OKLCHoklch(42.07% 0.091 277.8)
XYZxyz(8.2648, 7.1707, 20.6832)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42477E #7E7942
analogous
#42657E #42477E #5B427E
triadic
#42477E #7E4247 #477E42
tetradic
#42477E #7E4265 #7E7942 #427E5B
square
#42477E #7E4265 #7E7942 #427E5B
split-complementary
#42477E #7E5B42 #657E42
monochromatic
#181A2E #2D3056 #42477E #575EA6 #7F84BC

Accessibility & contrast

On white

8.63
#42477E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#42477E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42477E
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42477E#FFFFFF#000000##FFFFFF
##42477E1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#2D497D
Tritanopia (blue-blind)
#2D525C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #42477e;
/* rgb */ color: rgb(66, 71, 126);
/* oklch */ color: oklch(42.1% 0.091 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a7aa4',
    500: '#42477e',
    950: '#000000',
  },
}
SCSS
$custom: #42477e;
$custom-light: #7a7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#42477e",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 235,
    "s": 31.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42069,
    "c": 0.09099,
    "h": 277.8
  },
  "luminance": 0.07171
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42477E

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

Preview Lab → · Contrast checker → · Palette generator →

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