#28478F#28478F

#28478F is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.125 H 264.2°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#28478F
RGBrgb(40, 71, 143)
HSLhsl(222, 56%, 36%)
HSVhsv(222, 72%, 56%)
CMYKcmyk(72%, 50.3%, 0%, 43.9%)
CIE-LABlab(31.67, 14.42, -43.30)
CIE-LCHlch(31.67, 45.64, 288.42°)
OKLaboklab(41.6% -0.0127 -0.1243)
OKLCHoklch(41.6% 0.125 264.2)
XYZxyz(8.0845, 6.9399, 26.8948)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28478F #8F7028
analogous
#287A8F #28478F #3C288F
triadic
#28478F #8F2847 #478F28
tetradic
#28478F #8F287A #8F7028 #288F3C
square
#28478F #8F287A #8F7028 #288F3C
split-complementary
#28478F #8F3C28 #7A8F28
monochromatic
#0D182F #1B2F5F #28478F #355FBF #5F82D2

Accessibility & contrast

On white

8.79
#28478F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#28478F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28478F
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28478F#FFFFFF#000000##FFFFFF
##28478F1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5092
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #28478f;
/* rgb */ color: rgb(40, 71, 143);
/* oklch */ color: oklch(41.6% 0.125 264.2);
Tailwind
colors: {
  custom: {
    50: '#7079b0',
    500: '#28478f',
    950: '#000000',
  },
}
SCSS
$custom: #28478f;
$custom-light: #7079b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28478f",
  "rgb": {
    "r": 40,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 221.942,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41595,
    "c": 0.12491,
    "h": 264.2
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#28478F
secondary
#B89C5B
accent
#B248E0
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #28478F

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

Preview Lab → · Contrast checker → · Palette generator →

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