#28478B#28478B

#28478B is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.119 H 263.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#28478B
RGBrgb(40, 71, 139)
HSLhsl(221, 55%, 35%)
HSVhsv(221, 71%, 55%)
CMYKcmyk(71.2%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.40, 12.87, -41.28)
CIE-LCHlch(31.40, 43.24, 287.31°)
OKLaboklab(41.3% -0.0133 -0.1183)
OKLCHoklch(41.3% 0.119 263.6)
XYZxyz(7.7869, 6.8209, 25.3273)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28478B #8B6C28
analogous
#28788B #28478B #3A288B
triadic
#28478B #8B2847 #478B28
tetradic
#28478B #8B2878 #8B6C28 #288B3A
square
#28478B #8B2878 #8B6C28 #288B3A
split-complementary
#28478B #8B3A28 #788B28
monochromatic
#0D162C #1A2F5B #28478B #365FBB #5D81D0

Accessibility & contrast

On white

8.88
#28478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#28478B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28478B
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28478B#FFFFFF#000000##FFFFFF
##28478B1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8E
Deuteranopia (green-blind)
#0A468A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #28478b;
/* rgb */ color: rgb(40, 71, 139);
/* oklch */ color: oklch(41.3% 0.119 263.6);
Tailwind
colors: {
  custom: {
    50: '#6f79ad',
    500: '#28478b',
    950: '#000000',
  },
}
SCSS
$custom: #28478b;
$custom-light: #6f79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28478b",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 221.212,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41298,
    "c": 0.11907,
    "h": 263.6
  },
  "luminance": 0.06822
}

Semantic roles & 50–950 ramp

primary
#28478B
secondary
#B69959
accent
#B049DF
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #28478B

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

Preview Lab → · Contrast checker → · Palette generator →

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