#28407D#28407D

#28407D is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.7% C 0.107 H 265.5°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#28407D
RGBrgb(40, 64, 125)
HSLhsl(223, 52%, 32%)
HSVhsv(223, 68%, 49%)
CMYKcmyk(68%, 48.8%, 0%, 51%)
CIE-LABlab(28.37, 12.24, -37.45)
CIE-LCHlch(28.37, 39.40, 288.10°)
OKLaboklab(38.68% -0.0084 -0.1072)
OKLCHoklch(38.68% 0.108 265.5)
XYZxyz(6.4089, 5.5980, 20.1408)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28407D #7D6528
analogous
#286A7D #28407D #3B287D
triadic
#28407D #7D2840 #407D28
tetradic
#28407D #7D286A #7D6528 #287D3B
square
#28407D #7D286A #7D6528 #287D3B
split-complementary
#28407D #7D3B28 #6A7D28
monochromatic
#0A1120 #19284F #28407D #3758AB #5677C9

Accessibility & contrast

On white

9.91
#28407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28407D
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28407D#FFFFFF#000000##FFFFFF
##28407D1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#103F7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #28407d;
/* rgb */ color: rgb(40, 64, 125);
/* oklch */ color: oklch(38.7% 0.107 265.5);
Tailwind
colors: {
  custom: {
    50: '#6c74a3',
    500: '#28407d',
    950: '#000000',
  },
}
SCSS
$custom: #28407d;
$custom-light: #6c74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28407d",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 223.059,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38682,
    "c": 0.1075,
    "h": 265.5
  },
  "luminance": 0.05599
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28407D

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

Preview Lab → · Contrast checker → · Palette generator →

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