#42478C#42478C

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

Color values

HEX#42478C
RGBrgb(66, 71, 140)
HSLhsl(236, 36%, 40%)
HSVhsv(236, 53%, 55%)
CMYKcmyk(52.9%, 49.3%, 0%, 45.1%)
CIE-LABlab(33.04, 18.44, -39.17)
CIE-LCHlch(33.04, 43.29, 295.21°)
OKLaboklab(42.99% 0.0146 -0.1115)
OKLCHoklch(42.99% 0.112 277.4)
XYZxyz(9.2321, 7.5576, 25.7781)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42478C #8C8742
analogous
#426C8C #42478C #62428C
triadic
#42478C #8C4247 #478C42
tetradic
#42478C #8C426C #8C8742 #428C62
square
#42478C #8C426C #8C8742 #428C62
split-complementary
#42478C #8C6242 #6C8C42
monochromatic
#1B1D39 #2E3262 #42478C #5A60B1 #8488C5

Accessibility & contrast

On white

8.36
#42478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#42478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42478C
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42478C#FFFFFF#000000##FFFFFF
##42478C1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518F
Deuteranopia (green-blind)
#204B8A
Tritanopia (blue-blind)
#235663
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42478c;
/* rgb */ color: rgb(66, 71, 140);
/* oklch */ color: oklch(43.0% 0.112 277.4);
Tailwind
colors: {
  custom: {
    50: '#7c7aae',
    500: '#42478c',
    950: '#000000',
  },
}
SCSS
$custom: #42478c;
$custom-light: #7c7aae;
$custom-dark: #000000;
JSON
{
  "hex": "#42478c",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 235.946,
    "s": 35.922,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42992,
    "c": 0.11246,
    "h": 277.4
  },
  "luminance": 0.07558
}

Semantic roles & 50–950 ramp

primary
#42478C
secondary
#B0AC7A
accent
#C45CCC
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #42478C

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

Preview Lab → · Contrast checker → · Palette generator →

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