#28478C#28478C

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

Color values

HEX#28478C
RGBrgb(40, 71, 140)
HSLhsl(221, 56%, 35%)
HSVhsv(221, 71%, 55%)
CMYKcmyk(71.4%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.46, 13.26, -41.79)
CIE-LCHlch(31.46, 43.84, 287.60°)
OKLaboklab(41.37% -0.0131 -0.1198)
OKLCHoklch(41.37% 0.121 263.8)
XYZxyz(7.8603, 6.8502, 25.7138)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28478C #8C6D28
analogous
#28798C #28478C #3B288C
triadic
#28478C #8C2847 #478C28
tetradic
#28478C #8C2879 #8C6D28 #288C3B
square
#28478C #8C2879 #8C6D28 #288C3B
split-complementary
#28478C #8C3B28 #798C28
monochromatic
#0D172D #1A2F5C #28478C #365FBC #5E81D1

Accessibility & contrast

On white

8.86
#28478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#28478C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28478C
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28478C#FFFFFF#000000##FFFFFF
##28478C1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8F
Deuteranopia (green-blind)
#07468B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #28478c;
/* rgb */ color: rgb(40, 71, 140);
/* oklch */ color: oklch(41.4% 0.121 263.8);
Tailwind
colors: {
  custom: {
    50: '#6f79ae',
    500: '#28478c',
    950: '#000000',
  },
}
SCSS
$custom: #28478c;
$custom-light: #6f79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28478c",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 221.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41371,
    "c": 0.12054,
    "h": 263.8
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28478C

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

Preview Lab → · Contrast checker → · Palette generator →

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