#28388A#28388A

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

Color values

HEX#28388A
RGBrgb(40, 56, 138)
HSLhsl(230, 55%, 35%)
HSVhsv(230, 71%, 54%)
CMYKcmyk(71%, 59.4%, 0%, 45.9%)
CIE-LABlab(27.06, 22.74, -47.68)
CIE-LCHlch(27.06, 52.83, 295.50°)
OKLaboklab(37.99% 0.0004 -0.1374)
OKLCHoklch(37.99% 0.137 270.2)
XYZxyz(6.8751, 5.1138, 24.6646)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28388A #8A7A28
analogous
#28698A #28388A #49288A
triadic
#28388A #8A2838 #388A28
tetradic
#28388A #8A2869 #8A7A28 #288A49
square
#28388A #8A2869 #8A7A28 #288A49
split-complementary
#28388A #8A4928 #698A28
monochromatic
#0C112B #1A255B #28388A #364BB9 #5D6FD0

Accessibility & contrast

On white

10.38
#28388A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#28388A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28388A
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28388A#FFFFFF#000000##FFFFFF
##28388A1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28388a;
/* rgb */ color: rgb(40, 56, 138);
/* oklch */ color: oklch(38.0% 0.137 270.2);
Tailwind
colors: {
  custom: {
    50: '#6f6ead',
    500: '#28388a',
    950: '#000000',
  },
}
SCSS
$custom: #28388a;
$custom-light: #6f6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#28388a",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 138
  },
  "hsl": {
    "h": 230.204,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37993,
    "c": 0.1374,
    "h": 270.2
  },
  "luminance": 0.05114
}

Semantic roles & 50–950 ramp

primary
#28388A
secondary
#B5A659
accent
#C649DE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28388A

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

Preview Lab → · Contrast checker → · Palette generator →

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