#28397B#28397B

#28397B is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.0% C 0.114 H 269.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#28397B
RGBrgb(40, 57, 123)
HSLhsl(228, 51%, 32%)
HSVhsv(228, 67%, 48%)
CMYKcmyk(67.5%, 53.7%, 0%, 51.8%)
CIE-LABlab(26.18, 16.31, -39.73)
CIE-LCHlch(26.18, 42.94, 292.32°)
OKLaboklab(36.97% -0.0014 -0.114)
OKLCHoklch(36.97% 0.114 269.3)
XYZxyz(5.9121, 4.8069, 19.3513)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28397B #7B6A28
analogous
#28637B #28397B #41287B
triadic
#28397B #7B2839 #397B28
tetradic
#28397B #7B2863 #7B6A28 #287B41
square
#28397B #7B2863 #7B6A28 #287B41
split-complementary
#28397B #7B4128 #637B28
monochromatic
#0A0E1F #19244D #28397B #374EA9 #566DC8

Accessibility & contrast

On white

10.71
#28397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#28397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28397B
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28397B#FFFFFF#000000##FFFFFF
##28397B1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427D
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #28397b;
/* rgb */ color: rgb(40, 57, 123);
/* oklch */ color: oklch(37.0% 0.114 269.3);
Tailwind
colors: {
  custom: {
    50: '#6c6fa2',
    500: '#28397b',
    950: '#000000',
  },
}
SCSS
$custom: #28397b;
$custom-light: #6c6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#28397b",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 227.711,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36966,
    "c": 0.11399,
    "h": 269.3
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#28397B
secondary
#AD9A52
accent
#BE4DDA
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #28397B

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

Preview Lab → · Contrast checker → · Palette generator →

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