#28388B#28388B

#28388B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.139 H 270.2°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#28388B
RGBrgb(40, 56, 139)
HSLhsl(230, 55%, 35%)
HSVhsv(230, 71%, 55%)
CMYKcmyk(71.2%, 59.7%, 0%, 45.5%)
CIE-LABlab(27.14, 23.12, -48.17)
CIE-LCHlch(27.14, 53.43, 295.64°)
OKLaboklab(38.08% 0.0004 -0.1388)
OKLCHoklch(38.08% 0.139 270.2)
XYZxyz(6.9479, 5.1429, 25.0476)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28388B #8B7B28
analogous
#28698B #28388B #49288B
triadic
#28388B #8B2838 #388B28
tetradic
#28388B #8B2869 #8B7B28 #288B49
square
#28388B #8B2869 #8B7B28 #288B49
split-complementary
#28388B #8B4928 #698B28
monochromatic
#0D122C #1A255B #28388B #364BBB #5D70D0

Accessibility & contrast

On white

10.35
#28388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#28388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28388B
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28388B#FFFFFF#000000##FFFFFF
##28388B1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28388b;
/* rgb */ color: rgb(40, 56, 139);
/* oklch */ color: oklch(38.1% 0.139 270.2);
Tailwind
colors: {
  custom: {
    50: '#706eae',
    500: '#28388b',
    950: '#000000',
  },
}
SCSS
$custom: #28388b;
$custom-light: #706eae;
$custom-dark: #000000;
JSON
{
  "hex": "#28388b",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 230.303,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38079,
    "c": 0.13883,
    "h": 270.2
  },
  "luminance": 0.05144
}

Semantic roles & 50–950 ramp

primary
#28388B
secondary
#B6A759
accent
#C649DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28388B

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

Preview Lab → · Contrast checker → · Palette generator →

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