#28397A#28397A

#28397A is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.9% C 0.112 H 269.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#28397A
RGBrgb(40, 57, 122)
HSLhsl(228, 51%, 32%)
HSVhsv(228, 67%, 48%)
CMYKcmyk(67.2%, 53.3%, 0%, 52.2%)
CIE-LABlab(26.10, 15.93, -39.21)
CIE-LCHlch(26.10, 42.33, 292.11°)
OKLaboklab(36.89% -0.0015 -0.1125)
OKLCHoklch(36.89% 0.112 269.2)
XYZxyz(5.8499, 4.7820, 19.0233)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28397A #7A6928
analogous
#28627A #28397A #40287A
triadic
#28397A #7A2839 #397A28
tetradic
#28397A #7A2862 #7A6928 #287A40
square
#28397A #7A2862 #7A6928 #287A40
split-complementary
#28397A #7A4028 #627A28
monochromatic
#0A0E1E #19234C #28397A #374FA8 #556DC7

Accessibility & contrast

On white

10.73
#28397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28397A
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28397A#FFFFFF#000000##FFFFFF
##28397A1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427C
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #28397a;
/* rgb */ color: rgb(40, 57, 122);
/* oklch */ color: oklch(36.9% 0.112 269.2);
Tailwind
colors: {
  custom: {
    50: '#6c6fa1',
    500: '#28397a',
    950: '#000000',
  },
}
SCSS
$custom: #28397a;
$custom-light: #6c6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#28397a",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 227.561,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36887,
    "c": 0.11248,
    "h": 269.2
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#28397A
secondary
#AC9952
accent
#BD4EDA
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #28397A

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

Preview Lab → · Contrast checker → · Palette generator →

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