#42478D#42478D

#42478D is a dark, moderate blue. Relative luminance 0.076; OKLCH L 43.1% C 0.114 H 277.4°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#42478D
RGBrgb(66, 71, 141)
HSLhsl(236, 36%, 41%)
HSVhsv(236, 53%, 55%)
CMYKcmyk(53.2%, 49.6%, 0%, 44.7%)
CIE-LABlab(33.11, 18.78, -39.68)
CIE-LCHlch(33.11, 43.90, 295.33°)
OKLaboklab(43.06% 0.0147 -0.113)
OKLCHoklch(43.06% 0.114 277.4)
XYZxyz(9.3062, 7.5872, 26.1682)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42478D #8D8842
analogous
#426C8D #42478D #62428D
triadic
#42478D #8D4247 #478D42
tetradic
#42478D #8D426C #8D8842 #428D62
square
#42478D #8D426C #8D8842 #428D62
split-complementary
#42478D #8D6242 #6C8D42
monochromatic
#1B1D3A #2E3263 #42478D #5A60B2 #8488C5

Accessibility & contrast

On white

8.34
#42478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#42478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42478D
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42478D#FFFFFF#000000##FFFFFF
##42478D1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#1F4B8B
Tritanopia (blue-blind)
#225663
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42478d;
/* rgb */ color: rgb(66, 71, 141);
/* oklch */ color: oklch(43.1% 0.114 277.4);
Tailwind
colors: {
  custom: {
    50: '#7c7aaf',
    500: '#42478d',
    950: '#000000',
  },
}
SCSS
$custom: #42478d;
$custom-light: #7c7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#42478d",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 236,
    "s": 36.232,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43061,
    "c": 0.11396,
    "h": 277.4
  },
  "luminance": 0.07588
}

Semantic roles & 50–950 ramp

primary
#42478D
secondary
#B0AD7B
accent
#C55CCC
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #42478D

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

Preview Lab → · Contrast checker → · Palette generator →

#42478D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva