#28397E#28397E

#28397E is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.118 H 269.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#28397E
RGBrgb(40, 57, 126)
HSLhsl(228, 52%, 33%)
HSVhsv(228, 68%, 49%)
CMYKcmyk(68.3%, 54.8%, 0%, 50.6%)
CIE-LABlab(26.40, 17.46, -41.26)
CIE-LCHlch(26.40, 44.80, 292.94°)
OKLaboklab(37.2% -0.0012 -0.1185)
OKLCHoklch(37.2% 0.118 269.4)
XYZxyz(6.1028, 4.8832, 20.3555)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28397E #7E6D28
analogous
#28647E #28397E #42287E
triadic
#28397E #7E2839 #397E28
tetradic
#28397E #7E2864 #7E6D28 #287E42
square
#28397E #7E2864 #7E6D28 #287E42
split-complementary
#28397E #7E4228 #647E28
monochromatic
#0B0F21 #192450 #28397E #374EAC #576DCA

Accessibility & contrast

On white

10.62
#28397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#28397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28397E
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28397E#FFFFFF#000000##FFFFFF
##28397E1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4280
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #28397e;
/* rgb */ color: rgb(40, 57, 126);
/* oklch */ color: oklch(37.2% 0.118 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d6fa4',
    500: '#28397e',
    950: '#000000',
  },
}
SCSS
$custom: #28397e;
$custom-light: #6d6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#28397e",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 228.14,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37204,
    "c": 0.11849,
    "h": 269.4
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#28397E
secondary
#AF9D53
accent
#BF4DDB
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #28397E

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

Preview Lab → · Contrast checker → · Palette generator →

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