#28478E#28478E

#28478E is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.5% C 0.123 H 264.0°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#28478E
RGBrgb(40, 71, 142)
HSLhsl(222, 56%, 36%)
HSVhsv(222, 72%, 56%)
CMYKcmyk(71.8%, 50%, 0%, 44.3%)
CIE-LABlab(31.60, 14.03, -42.80)
CIE-LCHlch(31.60, 45.04, 288.15°)
OKLaboklab(41.52% -0.0128 -0.1228)
OKLCHoklch(41.52% 0.123 264)
XYZxyz(8.0091, 6.9098, 26.4976)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28478E #8E6F28
analogous
#287A8E #28478E #3C288E
triadic
#28478E #8E2847 #478E28
tetradic
#28478E #8E287A #8E6F28 #288E3C
square
#28478E #8E287A #8E6F28 #288E3C
split-complementary
#28478E #8E3C28 #7A8E28
monochromatic
#0D172F #1B2F5E #28478E #355FBE #5F82D2

Accessibility & contrast

On white

8.82
#28478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28478E
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28478E#FFFFFF#000000##FFFFFF
##28478E1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F91
Deuteranopia (green-blind)
#01468D
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #28478e;
/* rgb */ color: rgb(40, 71, 142);
/* oklch */ color: oklch(41.5% 0.123 264.0);
Tailwind
colors: {
  custom: {
    50: '#6f79af',
    500: '#28478e',
    950: '#000000',
  },
}
SCSS
$custom: #28478e;
$custom-light: #6f79af;
$custom-dark: #000000;
JSON
{
  "hex": "#28478e",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 221.765,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4152,
    "c": 0.12345,
    "h": 264
  },
  "luminance": 0.06911
}

Semantic roles & 50–950 ramp

primary
#28478E
secondary
#B79B5B
accent
#B148DF
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #28478E

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

Preview Lab → · Contrast checker → · Palette generator →

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