#28397C#28397C

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

Color values

HEX#28397C
RGBrgb(40, 57, 124)
HSLhsl(228, 51%, 32%)
HSVhsv(228, 68%, 49%)
CMYKcmyk(67.7%, 54%, 0%, 51.4%)
CIE-LABlab(26.25, 16.69, -40.24)
CIE-LCHlch(26.25, 43.56, 292.53°)
OKLaboklab(37.05% -0.0013 -0.1155)
OKLCHoklch(37.05% 0.116 269.3)
XYZxyz(5.9751, 4.8321, 19.6827)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28397C #7C6B28
analogous
#28637C #28397C #41287C
triadic
#28397C #7C2839 #397C28
tetradic
#28397C #7C2863 #7C6B28 #287C41
square
#28397C #7C2863 #7C6B28 #287C41
split-complementary
#28397C #7C4128 #637C28
monochromatic
#0A0E1F #19244E #28397C #374EAA #566DC8

Accessibility & contrast

On white

10.68
#28397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#28397C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28397C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28397C#FFFFFF#000000##FFFFFF
##28397C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427E
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #28397c;
/* rgb */ color: rgb(40, 57, 124);
/* oklch */ color: oklch(37.0% 0.116 269.3);
Tailwind
colors: {
  custom: {
    50: '#6c6fa2',
    500: '#28397c',
    950: '#000000',
  },
}
SCSS
$custom: #28397c;
$custom-light: #6c6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#28397c",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 227.857,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37045,
    "c": 0.1155,
    "h": 269.3
  },
  "luminance": 0.04833
}

Semantic roles & 50–950 ramp

primary
#28397C
secondary
#AD9B52
accent
#BE4DDB
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #28397C

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

Preview Lab → · Contrast checker → · Palette generator →

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