#28188B#28188B

#28188B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.175 H 277.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#28188B
RGBrgb(40, 24, 139)
HSLhsl(248, 71%, 32%)
HSVhsv(248, 83%, 55%)
CMYKcmyk(71.2%, 82.7%, 0%, 45.5%)
CIE-LABlab(19.91, 42.72, -60.03)
CIE-LCHlch(19.91, 73.68, 305.44°)
OKLaboklab(32.87% 0.0214 -0.1735)
OKLCHoklch(32.87% 0.175 277)
XYZxyz(5.8604, 2.9679, 24.6851)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28188B #7B8B18
analogous
#18428B #28188B #62188B
triadic
#28188B #8B2818 #188B28
tetradic
#28188B #8B1842 #7B8B18 #188B62
square
#28188B #8B1842 #7B8B18 #188B62
split-complementary
#28188B #8B6218 #428B18
monochromatic
#0A0623 #190F57 #28188B #3721BF #563FDE

Accessibility & contrast

On white

13.18
#28188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28188B
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28188B#FFFFFF#000000##FFFFFF
##28188B1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28188b;
/* rgb */ color: rgb(40, 24, 139);
/* oklch */ color: oklch(32.9% 0.175 277.0);
Tailwind
colors: {
  custom: {
    50: '#7259ae',
    500: '#28188b',
    950: '#000000',
  },
}
SCSS
$custom: #28188b;
$custom-light: #7259ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28188b",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 248.348,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32868,
    "c": 0.17479,
    "h": 277
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#28188B
secondary
#ADBE40
accent
#ED3AD4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #28188B

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

Preview Lab → · Contrast checker → · Palette generator →

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