#28417A#28417A

#28417A is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.7% C 0.102 H 264.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#28417A
RGBrgb(40, 65, 122)
HSLhsl(222, 51%, 32%)
HSVhsv(222, 67%, 48%)
CMYKcmyk(67.2%, 46.7%, 0%, 52.2%)
CIE-LABlab(28.48, 10.40, -35.40)
CIE-LCHlch(28.48, 36.90, 286.37°)
OKLaboklab(38.7% -0.01 -0.1011)
OKLCHoklch(38.7% 0.102 264.4)
XYZxyz(6.2770, 5.6363, 19.1657)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28417A #7A6128
analogous
#286A7A #28417A #38287A
triadic
#28417A #7A2841 #417A28
tetradic
#28417A #7A286A #7A6128 #287A38
square
#28417A #7A286A #7A6128 #287A38
split-complementary
#28417A #7A3828 #6A7A28
monochromatic
#0A101E #19284C #28417A #375AA8 #5578C7

Accessibility & contrast

On white

9.87
#28417A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#28417A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28417A
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28417A#FFFFFF#000000##FFFFFF
##28417A1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477C
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #28417a;
/* rgb */ color: rgb(40, 65, 122);
/* oklch */ color: oklch(38.7% 0.102 264.4);
Tailwind
colors: {
  custom: {
    50: '#6b75a1',
    500: '#28417a',
    950: '#000000',
  },
}
SCSS
$custom: #28417a;
$custom-light: #6b75a1;
$custom-dark: #000000;
JSON
{
  "hex": "#28417a",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 122
  },
  "hsl": {
    "h": 221.707,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38695,
    "c": 0.10163,
    "h": 264.4
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#28417A
secondary
#AC9052
accent
#AF4EDA
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #28417A

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

Preview Lab → · Contrast checker → · Palette generator →

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