#28487F#28487F

#28487F is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.100 H 260.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#28487F
RGBrgb(40, 72, 127)
HSLhsl(218, 52%, 33%)
HSVhsv(218, 69%, 50%)
CMYKcmyk(68.5%, 43.3%, 0%, 50.2%)
CIE-LABlab(30.92, 7.56, -34.62)
CIE-LCHlch(30.92, 35.44, 282.32°)
OKLaboklab(40.68% -0.0165 -0.0987)
OKLCHoklch(40.68% 0.1 260.5)
XYZxyz(7.0218, 6.6175, 20.9818)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28487F #7F5F28
analogous
#28737F #28487F #33287F
triadic
#28487F #7F2848 #487F28
tetradic
#28487F #7F2873 #7F5F28 #287F33
square
#28487F #7F2873 #7F5F28 #287F33
split-complementary
#28487F #7F3328 #737F28
monochromatic
#0B1322 #192E50 #28487F #3762AE #5782CA

Accessibility & contrast

On white

9.04
#28487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#28487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28487F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28487F#FFFFFF#000000##FFFFFF
##28487F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D81
Deuteranopia (green-blind)
#21457E
Tritanopia (blue-blind)
#00555D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #28487f;
/* rgb */ color: rgb(40, 72, 127);
/* oklch */ color: oklch(40.7% 0.100 260.5);
Tailwind
colors: {
  custom: {
    50: '#6c7aa4',
    500: '#28487f',
    950: '#000000',
  },
}
SCSS
$custom: #28487f;
$custom-light: #6c7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#28487f",
  "rgb": {
    "r": 40,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 217.931,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40681,
    "c": 0.10011,
    "h": 260.5
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#28487F
secondary
#AF8E54
accent
#A74CDC
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #28487F

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

Preview Lab → · Contrast checker → · Palette generator →

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