#42478B#42478B

#42478B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.9% C 0.111 H 277.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#42478B
RGBrgb(66, 71, 139)
HSLhsl(236, 36%, 40%)
HSVhsv(236, 53%, 55%)
CMYKcmyk(52.5%, 48.9%, 0%, 45.5%)
CIE-LABlab(32.98, 18.11, -38.66)
CIE-LCHlch(32.98, 42.69, 295.10°)
OKLaboklab(42.92% 0.0144 -0.11)
OKLCHoklch(42.92% 0.111 277.5)
XYZxyz(9.1587, 7.5283, 25.3916)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42478B #8B8642
analogous
#426C8B #42478B #61428B
triadic
#42478B #8B4247 #478B42
tetradic
#42478B #8B426C #8B8642 #428B61
square
#42478B #8B426C #8B8642 #428B61
split-complementary
#42478B #8B6142 #6C8B42
monochromatic
#1B1D38 #2E3262 #42478B #5A60B1 #8388C4

Accessibility & contrast

On white

8.38
#42478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42478B
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42478B#FFFFFF#000000##FFFFFF
##42478B1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518D
Deuteranopia (green-blind)
#214B8A
Tritanopia (blue-blind)
#245662
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42478b;
/* rgb */ color: rgb(66, 71, 139);
/* oklch */ color: oklch(42.9% 0.111 277.5);
Tailwind
colors: {
  custom: {
    50: '#7c7aad',
    500: '#42478b',
    950: '#000000',
  },
}
SCSS
$custom: #42478b;
$custom-light: #7c7aad;
$custom-dark: #000000;
JSON
{
  "hex": "#42478b",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 235.89,
    "s": 35.61,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.11095,
    "h": 277.5
  },
  "luminance": 0.07529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42478B

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

Preview Lab → · Contrast checker → · Palette generator →

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