#28417D#28417D

#28417D is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.106 H 264.9°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#28417D
RGBrgb(40, 65, 125)
HSLhsl(222, 52%, 32%)
HSVhsv(222, 68%, 49%)
CMYKcmyk(68%, 48%, 0%, 51%)
CIE-LABlab(28.67, 11.55, -36.97)
CIE-LCHlch(28.67, 38.73, 287.35°)
OKLaboklab(38.91% -0.0095 -0.1057)
OKLCHoklch(38.91% 0.106 264.9)
XYZxyz(6.4658, 5.7118, 20.1598)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28417D #7D6428
analogous
#286C7D #28417D #3A287D
triadic
#28417D #7D2841 #417D28
tetradic
#28417D #7D286C #7D6428 #287D3A
square
#28417D #7D286C #7D6428 #287D3A
split-complementary
#28417D #7D3A28 #6C7D28
monochromatic
#0A1120 #19294F #28417D #3759AB #5678C9

Accessibility & contrast

On white

9.80
#28417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#28417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28417D
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28417D#FFFFFF#000000##FFFFFF
##28417D1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#13407C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #28417d;
/* rgb */ color: rgb(40, 65, 125);
/* oklch */ color: oklch(38.9% 0.106 264.9);
Tailwind
colors: {
  custom: {
    50: '#6c75a3',
    500: '#28417d',
    950: '#000000',
  },
}
SCSS
$custom: #28417d;
$custom-light: #6c75a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28417d",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 222.353,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38911,
    "c": 0.10616,
    "h": 264.9
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#28417D
secondary
#AE9353
accent
#B14DDB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #28417D

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

Preview Lab → · Contrast checker → · Palette generator →

#28417D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva