#28387B#28387B

#28387B is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.7% C 0.115 H 269.8°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#28387B
RGBrgb(40, 56, 123)
HSLhsl(228, 51%, 32%)
HSVhsv(228, 67%, 48%)
CMYKcmyk(67.5%, 54.5%, 0%, 51.8%)
CIE-LABlab(25.89, 17.00, -40.19)
CIE-LCHlch(25.89, 43.64, 292.93°)
OKLaboklab(36.75% -0.0004 -0.1154)
OKLCHoklch(36.75% 0.115 269.8)
XYZxyz(5.8632, 4.7090, 19.3350)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28387B #7B6B28
analogous
#28627B #28387B #42287B
triadic
#28387B #7B2838 #387B28
tetradic
#28387B #7B2862 #7B6B28 #287B42
square
#28387B #7B2862 #7B6B28 #287B42
split-complementary
#28387B #7B4228 #627B28
monochromatic
#0A0E1F #19234D #28387B #374DA9 #566CC8

Accessibility & contrast

On white

10.81
#28387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#28387B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28387B
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28387B#FFFFFF#000000##FFFFFF
##28387B1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417D
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28387b;
/* rgb */ color: rgb(40, 56, 123);
/* oklch */ color: oklch(36.7% 0.115 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c6ea2',
    500: '#28387b',
    950: '#000000',
  },
}
SCSS
$custom: #28387b;
$custom-light: #6c6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#28387b",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 228.434,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36748,
    "c": 0.11536,
    "h": 269.8
  },
  "luminance": 0.0471
}

Semantic roles & 50–950 ramp

primary
#28387B
secondary
#AD9B52
accent
#BF4DDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #28387B

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

Preview Lab → · Contrast checker → · Palette generator →

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