#28388D#28388D

#28388D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.142 H 270.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#28388D
RGBrgb(40, 56, 141)
HSLhsl(230, 56%, 35%)
HSVhsv(230, 72%, 55%)
CMYKcmyk(71.6%, 60.3%, 0%, 44.7%)
CIE-LABlab(27.30, 23.88, -49.14)
CIE-LCHlch(27.30, 54.64, 295.92°)
OKLaboklab(38.25% 0.0004 -0.1417)
OKLCHoklch(38.25% 0.142 270.2)
XYZxyz(7.0953, 5.2019, 25.8243)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28388D #8D7D28
analogous
#286A8D #28388D #4A288D
triadic
#28388D #8D2838 #388D28
tetradic
#28388D #8D286A #8D7D28 #288D4A
square
#28388D #8D286A #8D7D28 #288D4A
split-complementary
#28388D #8D4A28 #6A8D28
monochromatic
#0D122E #1A255D #28388D #364BBD #5E70D1

Accessibility & contrast

On white

10.29
#28388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#28388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28388D
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28388D#FFFFFF#000000##FFFFFF
##28388D1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28388d;
/* rgb */ color: rgb(40, 56, 141);
/* oklch */ color: oklch(38.3% 0.142 270.2);
Tailwind
colors: {
  custom: {
    50: '#706eaf',
    500: '#28388d',
    950: '#000000',
  },
}
SCSS
$custom: #28388d;
$custom-light: #706eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#28388d",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 230.495,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38253,
    "c": 0.14168,
    "h": 270.2
  },
  "luminance": 0.05203
}

Semantic roles & 50–950 ramp

primary
#28388D
secondary
#B7A85A
accent
#C749DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28388D

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

Preview Lab → · Contrast checker → · Palette generator →

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