#28478D#28478D

#28478D is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.4% C 0.122 H 263.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#28478D
RGBrgb(40, 71, 141)
HSLhsl(222, 56%, 35%)
HSVhsv(222, 72%, 55%)
CMYKcmyk(71.6%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.53, 13.64, -42.29)
CIE-LCHlch(31.53, 44.44, 287.88°)
OKLaboklab(41.45% -0.013 -0.1213)
OKLCHoklch(41.45% 0.122 263.9)
XYZxyz(7.9343, 6.8799, 26.1039)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28478D #8D6E28
analogous
#28798D #28478D #3B288D
triadic
#28478D #8D2847 #478D28
tetradic
#28478D #8D2879 #8D6E28 #288D3B
square
#28478D #8D2879 #8D6E28 #288D3B
split-complementary
#28478D #8D3B28 #798D28
monochromatic
#0D172E #1A2F5D #28478D #365FBD #5E81D1

Accessibility & contrast

On white

8.84
#28478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#28478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28478D
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28478D#FFFFFF#000000##FFFFFF
##28478D1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F90
Deuteranopia (green-blind)
#04468C
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #28478d;
/* rgb */ color: rgb(40, 71, 141);
/* oklch */ color: oklch(41.4% 0.122 263.9);
Tailwind
colors: {
  custom: {
    50: '#6f79af',
    500: '#28478d',
    950: '#000000',
  },
}
SCSS
$custom: #28478d;
$custom-light: #6f79af;
$custom-dark: #000000;
JSON
{
  "hex": "#28478d",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 221.584,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41446,
    "c": 0.12199,
    "h": 263.9
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#28478D
secondary
#B79A5A
accent
#B149DF
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #28478D

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

Preview Lab → · Contrast checker → · Palette generator →

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