#28417F#28417F

#28417F is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.109 H 265.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#28417F
RGBrgb(40, 65, 127)
HSLhsl(223, 52%, 33%)
HSVhsv(223, 69%, 50%)
CMYKcmyk(68.5%, 48.8%, 0%, 50.2%)
CIE-LABlab(28.81, 12.32, -38.00)
CIE-LCHlch(28.81, 39.95, 287.97°)
OKLaboklab(39.06% -0.0091 -0.1088)
OKLCHoklch(39.06% 0.109 265.2)
XYZxyz(6.5948, 5.7634, 20.8395)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28417F #7F6628
analogous
#286C7F #28417F #3B287F
triadic
#28417F #7F2841 #417F28
tetradic
#28417F #7F286C #7F6628 #287F3B
square
#28417F #7F286C #7F6628 #287F3B
split-complementary
#28417F #7F3B28 #6C7F28
monochromatic
#0B1122 #192950 #28417F #3759AE #5778CA

Accessibility & contrast

On white

9.75
#28417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#28417F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28417F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28417F#FFFFFF#000000##FFFFFF
##28417F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214881
Deuteranopia (green-blind)
#0F407E
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #28417f;
/* rgb */ color: rgb(40, 65, 127);
/* oklch */ color: oklch(39.1% 0.109 265.2);
Tailwind
colors: {
  custom: {
    50: '#6c75a4',
    500: '#28417f',
    950: '#000000',
  },
}
SCSS
$custom: #28417f;
$custom-light: #6c75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28417f",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 222.759,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39057,
    "c": 0.10917,
    "h": 265.2
  },
  "luminance": 0.05764
}

Semantic roles & 50–950 ramp

primary
#28417F
secondary
#AF9554
accent
#B24CDC
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #28417F

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

Preview Lab → · Contrast checker → · Palette generator →

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