#28508F#28508F

#28508F is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.114 H 259.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#28508F
RGBrgb(40, 80, 143)
HSLhsl(217, 56%, 36%)
HSVhsv(217, 72%, 56%)
CMYKcmyk(72%, 44.1%, 0%, 43.9%)
CIE-LABlab(34.34, 8.37, -39.02)
CIE-LCHlch(34.34, 39.91, 282.11°)
OKLaboklab(43.64% -0.0213 -0.1115)
OKLCHoklch(43.64% 0.114 259.2)
XYZxyz(8.6999, 8.1707, 27.0999)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28508F #8F6728
analogous
#28838F #28508F #33288F
triadic
#28508F #8F2850 #508F28
tetradic
#28508F #8F2883 #8F6728 #288F33
square
#28508F #8F2883 #8F6728 #288F33
split-complementary
#28508F #8F3328 #838F28
monochromatic
#0D1A2F #1B355F #28508F #356BBF #5F8CD2

Accessibility & contrast

On white

7.97
#28508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#28508F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28508F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28508F#FFFFFF#000000##FFFFFF
##28508F1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325691
Deuteranopia (green-blind)
#204C8E
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #28508f;
/* rgb */ color: rgb(40, 80, 143);
/* oklch */ color: oklch(43.6% 0.114 259.2);
Tailwind
colors: {
  custom: {
    50: '#6f80b0',
    500: '#28508f',
    950: '#000000',
  },
}
SCSS
$custom: #28508f;
$custom-light: #6f80b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28508f",
  "rgb": {
    "r": 40,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 216.699,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43644,
    "c": 0.11354,
    "h": 259.2
  },
  "luminance": 0.08172
}

Semantic roles & 50–950 ramp

primary
#28508F
secondary
#B8945B
accent
#A548E0
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #28508F

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

Preview Lab → · Contrast checker → · Palette generator →

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