#28407E#28407E

#28407E is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.8% C 0.109 H 265.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#28407E
RGBrgb(40, 64, 126)
HSLhsl(223, 52%, 33%)
HSVhsv(223, 68%, 49%)
CMYKcmyk(68.3%, 49.2%, 0%, 50.6%)
CIE-LABlab(28.44, 12.62, -37.96)
CIE-LCHlch(28.44, 40.01, 288.39°)
OKLaboklab(38.76% -0.0083 -0.1087)
OKLCHoklch(38.76% 0.109 265.7)
XYZxyz(6.4731, 5.6237, 20.4790)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28407E #7E6628
analogous
#286B7E #28407E #3B287E
triadic
#28407E #7E2840 #407E28
tetradic
#28407E #7E286B #7E6628 #287E3B
square
#28407E #7E286B #7E6628 #287E3B
split-complementary
#28407E #7E3B28 #6B7E28
monochromatic
#0B1121 #192850 #28407E #3758AC #5777CA

Accessibility & contrast

On white

9.88
#28407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#28407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28407E
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28407E#FFFFFF#000000##FFFFFF
##28407E1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#0E3F7D
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #28407e;
/* rgb */ color: rgb(40, 64, 126);
/* oklch */ color: oklch(38.8% 0.109 265.7);
Tailwind
colors: {
  custom: {
    50: '#6c74a4',
    500: '#28407e',
    950: '#000000',
  },
}
SCSS
$custom: #28407e;
$custom-light: #6c74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28407e",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 223.256,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38756,
    "c": 0.109,
    "h": 265.7
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#28407E
secondary
#AF9553
accent
#B34DDB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #28407E

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

Preview Lab → · Contrast checker → · Palette generator →

#28407E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva